697 {
698
699 PlayerBase player = PlayerBase.Cast( fire_source.GetHierarchyRootPlayer() );
700
701
703
704
705 if ( !
g_Game.IsMultiplayer() )
706 {
707 InventoryLocation loc = new InventoryLocation;
708 entity.GetInventory().GetCurrentInventoryLocation( loc );
709 player.GetInventory().ClearInventoryReservationEx( entity, loc );
710 }
711
713 {
714 player.ServerTakeEntityToTargetAttachment( fireplace, entity );
715 }
716 else
717 {
718 player.LocalTakeEntityToTargetAttachment( fireplace, entity );
719 }
720
721
722 fireplace.StartFire();
723 fireplace.OnIgnitedThis(fire_source);
724
725 return fireplace;
726 }
const int ECE_PLACE_ON_SURFACE