Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionVehicle.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionVehicle
:
SCR_ScenarioFrameworkActionBase
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionVehicle
Definition
SCR_ScenarioFrameworkActionVehicle.c:3
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
SCR_ScenarioFrameworkVehicleActionBase
Definition
SCR_ScenarioFrameworkVehicleActionBase.c:3
Vehicle
enum EPhysicsLayerPresets Vehicle
Definition
gameLib.c:24
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
VehicleActions
SCR_ScenarioFrameworkActionVehicle.c
Generated by
1.17.0