Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ArtilleryWaypointCommandHandler.c
Go to the documentation of this file.
3{
4 [Attribute("-1", desc: "Number of rounds that group will fire when issued this order.\n-1 means infinite", params: "-1 inf")]
5 protected int m_iNumberOfRounds;
6
7 [Attribute(SCR_EAIArtilleryAmmoType.HIGH_EXPLOSIVE.ToString(), UIWidgets.ComboBox, desc: "Type of the ammunition that will be fired", enumType: SCR_EAIArtilleryAmmoType)]
9
10 //------------------------------------------------------------------------------------------------
11 override void OnWaypointCreated(notnull SCR_AIWaypoint waypoint)
12 {
13 SCR_AIWaypointArtillerySupport artilleryWaypoint = SCR_AIWaypointArtillerySupport.Cast(waypoint);
14 if (!artilleryWaypoint)
15 return;
16
17 if (artilleryWaypoint.GetAmmoType() != m_eAmmunitionType)
18 artilleryWaypoint.SetAmmoType(m_eAmmunitionType);
19
20 if (artilleryWaypoint.GetTargetShotCount() != m_iNumberOfRounds)
21 artilleryWaypoint.SetTargetShotCount(m_iNumberOfRounds);
22 }
23
24 //------------------------------------------------------------------------------------------------
25 override void OnWaypointIssued(notnull SCR_AIWaypoint waypoint, notnull SCR_AIGroup group)
26 {
27 SCR_AIWaypointArtillerySupport artilleryWaypoint = SCR_AIWaypointArtillerySupport.Cast(waypoint);
28 if (!artilleryWaypoint)
29 return;
30
31 if (artilleryWaypoint.IsActive())
32 return;
33
34 artilleryWaypoint.SetActive(true);
35 }
36}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void SetTargetShotCount(int value, bool invokeEvent=true)
void SetAmmoType(SCR_EAIArtilleryAmmoType value, bool invokeEvent=true)
void SetActive(bool value, bool invokeEvent=true)
override void OnWaypointCreated(notnull SCR_AIWaypoint waypoint)
override void OnWaypointIssued(notnull SCR_AIWaypoint waypoint, notnull SCR_AIGroup group)
SCR_FieldOfViewSettings Attribute