3 override bool VisibleInPalette() {
return true; }
5 protected CharacterControllerComponent m_CharacterController;
6 protected CompartmentAccessComponent m_CompartmentAccess;
7 protected bool m_bInitialized;
9 override bool TestFunction(AIAgent owner)
15 if (m_CompartmentAccess.GetCompartment())
21 override void OnInit(AIAgent owner)
23 IEntity controlledEntity = owner.GetControlledEntity();
24 m_CharacterController = CharacterControllerComponent.Cast(controlledEntity.FindComponent(CharacterControllerComponent));
25 m_CompartmentAccess = CompartmentAccessComponent.Cast(controlledEntity.FindComponent(CompartmentAccessComponent));
29 override string GetOnHoverDescription()
31 return "Returns TRUE if current weapon is not obstructed";