4 static const string BASE_TARGET_PORT =
"BaseTargetIn";
6 SCR_AICombatComponent m_CombatComp;
9 protected override bool TestFunction(AIAgent owner)
13 IEntity controlledEntity = owner.GetControlledEntity();
15 m_CombatComp = SCR_AICombatComponent.Cast(owner.FindComponent(SCR_AICombatComponent));
22 GetVariableIn(BASE_TARGET_PORT,target);
27 bool visible = m_CombatComp.IsTargetVisible(target);
33 protected override bool VisibleInPalette()
39 protected override string GetOnHoverDescription()
41 return "IsTargetVisible: Checks if target is visible. The check is performed through Combat Component.";
45 protected static ref TStringArray s_aVarsIn = {
48 protected override TStringArray GetVariablesIn()