1 [
EntityEditorProps(
category:
"GameScripted/Firingrange", description:
"Defines area from which player should shoot at target. Needs to be a child of firing line controller. ", color:
"0 0 255 255")]
14 override void EOnInit (IEntity owner)
18 if (!m_LineController)
26 override void OnDeactivate(IEntity ent)
28 if (!m_LineController || !m_FiringRangeManager)
32 int firigLineOwner =
GetGame().GetPlayerManager().GetPlayerIdFromControlledEntity(ent);
37 if (m_LineController.GetFiringLineOwnerId() == firigLineOwner)
38 m_LineController.BackToDefaultTargetsFromLineArea();