686 {
687
688 PlayerBase player = PlayerBase.Cast( fire_source.GetHierarchyRootPlayer() );
689
690
692
693
694 if ( !
GetGame().IsMultiplayer() )
695 {
696 InventoryLocation loc = new InventoryLocation;
697 entity.GetInventory().GetCurrentInventoryLocation( loc );
698 player.GetInventory().ClearInventoryReservationEx( entity, loc );
699 }
700
702 {
703 player.ServerTakeEntityToTargetAttachment( fireplace, entity );
704 }
705 else
706 {
707 player.LocalTakeEntityToTargetAttachment( fireplace, entity );
708 }
709
710
711 fireplace.StartFire();
712 fireplace.OnIgnitedThis(fire_source);
713
714 return fireplace;
715 }
const int ECE_PLACE_ON_SURFACE
proto native CGame GetGame()