678 {
679
680 PlayerBase player = PlayerBase.Cast( fire_source.GetHierarchyRootPlayer() );
681
682
684
685
686 if ( !
GetGame().IsMultiplayer() )
687 {
688 InventoryLocation loc = new InventoryLocation;
689 entity.GetInventory().GetCurrentInventoryLocation( loc );
690 player.GetInventory().ClearInventoryReservationEx( entity, loc );
691 }
692
694 {
695 player.ServerTakeEntityToTargetAttachment( fireplace, entity );
696 }
697 else
698 {
699 player.LocalTakeEntityToTargetAttachment( fireplace, entity );
700 }
701
702
703 fireplace.StartFire();
704 fireplace.OnIgnitedThis(fire_source);
705
706 return fireplace;
707 }
const int ECE_PLACE_ON_SURFACE
proto native CGame GetGame()