Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionVehicle.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Target entity for Vehicle Action")];
5 ref SCR_ScenarioFrameworkGet m_Getter;
6
7 [Attribute(desc: "Vehicle actions that will be executed on target entity")];
8 ref array<ref SCR_ScenarioFrameworkVehicleActionBase> m_aVehicleActions;
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 {
19 Print(string.Format("ScenarioFramework Action: Entity not found for Action %1.", this), LogLevel.ERROR);
20 return;
21 }
22
23 Vehicle vehicle = Vehicle.Cast(entity);
24 if (!vehicle)
25 {
26 Print(string.Format("ScenarioFramework Action: Entity is not Vehicle for Action %1.", this), LogLevel.ERROR);
27 return;
28 }
29
30 foreach (SCR_ScenarioFrameworkVehicleActionBase vehicleAction : m_aVehicleActions)
31 {
32 vehicleAction.Init(vehicle);
33 }
34 }
35}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
enum EPhysicsLayerPresets Vehicle
Definition gameLib.c:24
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute