3 override void CreateActionComponent()
8 override void InitActionComponent()
10 super.InitActionComponent();
49 if (targetItem && targetItem.IsBeingPlaced())
52 Object targetObject = target.GetObject();
53 if (targetObject !=
null)
55 if (targetObject.IsInherited(
TrapBase))
58 if (trap.IsActivable())
65 if (spawnTrap && !spawnTrap.IsActive())
66 return spawnTrap.IsPlaceableAtPosition(spawnTrap.GetPosition());
75 super.OnStartAnimationLoop( action_data );
82 Param1<bool> play =
new Param1<bool>(
true );
95 Param1<bool> play =
new Param1<bool>(
false );
103 super.OnEndAnimationLoop(action_data);
108 Param1<bool> play =
new Param1<bool>(
false);
115 Object targetObject = action_data.m_Target.GetObject();
116 if (targetObject !=
null)
118 vector orientation = action_data.m_Player.GetOrientation();
119 vector position = targetObject.GetPosition();
121 if (targetObject.IsInherited(
TrapBase))
124 trap.OnPlacementComplete(action_data.m_Player, position, orientation);
125 trap.StartActivate(action_data.m_Player);
130 spawnTrap.OnPlacementComplete(action_data.m_Player, position, orientation);