Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionSetVehicleCruiseSpeed.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Target entity to set max cruise speed.")]
5 ref SCR_ScenarioFrameworkGet m_Getter;
6
7 [Attribute(defvalue: "50", uiwidget: UIWidgets.EditBox, desc: "Max cruise speed of AI if driving a given entity in km/h.", params: "0 inf 0.5", category: "Common")]
8 float m_fMaxCruiseSpeed;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 IEntity entity;
17 if (!ValidateInputEntity(object, m_Getter, entity))
18 return;
19
21 if (!carMovementComp)
22 return;
23
24 carMovementComp.SetCruiseSpeed(m_fMaxCruiseSpeed);
25 }
26}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute