21 player.LocalTakeEntityToHands(
this);
27 if (!super.CanPutInCargo(parent))
30 EntityAI owner = GetHierarchyParent();
31 if (owner && owner.IsKindOf(
"Fence"))
34 bool allowIntoInventory = !GetCompEM().IsPlugged();
35 return allowIntoInventory;
40 if (!super.CanPutIntoHands(parent))
49 EntityAI owner = GetHierarchyParent();
50 if (owner && owner.IsKindOf(
"Fence"))
60 super.OnInventoryEnter(player);
63 if (playerPB.GetItemInHands() ==
this && GetCompEM().IsPlugged())
66 GetCompEM().UnplugAllDevices();
68 if (!playerPB.IsPlacingLocal())
69 GetCompEM().UnplugThis();
83 super.OnPlacementStarted(player);
92 playerPB.GetHologramServer().SetSelectionToRefresh(selections);
94 playerPB.GetHologramLocal().SetSelectionToRefresh(selections);
99 return "placeCableReel_SoundSet";
ActionPlaceObjectCB ActiondeployObjectCB ActionPlaceObject()
void AddAction(typename actionName)
void RemoveAction(typename actionName)
override void OnInventoryEnter(Man player)
override void OnPlacementStarted(Man player)
override bool CanPutIntoHands(EntityAI parent)
override bool IsElectricAppliance()
override void SetActions()
override bool CanRemoveFromHands(EntityAI parent)
const string SEL_CORD_PLUGGED
override string GetDeploySoundset()
const string SEL_CORD_FOLDED
override bool CanPutInCargo(EntityAI parent)
void ForceIntoHandsNow(PlayerBase player)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()