8 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
15 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
18 PlayerController playerController =
GetGame().GetPlayerController();
19 if (!playerController)
24 if (!firingRangeNetworkEntity)
28 firingRangeNetworkEntity.CalculateTargetDistance(pOwnerEntity,
false);
31 override bool CanBeShownScript(IEntity user)
34 if (m_FiringRangeManager)
35 return m_LineController.GetFiringLineOwnerId() == m_LineController.NO_TARGET_OWNER;
41 override bool CanBePerformedScript(IEntity user)
43 return m_LineController && !m_LineController.IsLowestDistanceSet();
47 override bool GetActionNameScript(out
string outName)
49 outName = (
"#AR-FiringRange_ActionDistanceDown-UC");
54 override bool HasLocalEffectOnlyScript()