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_ScenarioFrameworkActionDecreaseLogicCounter.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionDecreaseLogicCounter
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Logic Counter to decrease (Optional if this action is attached on Counter)"
)]
5
string
m_sCounterName;
6
7
//------------------------------------------------------------------------------------------------
8
override
void
OnActivate
(
IEntity
object
)
9
{
10
if
(!CanActivate())
11
return
;
12
13
SCR_ScenarioFrameworkLogicCounter logicCounter;
14
if
(
SCR_StringHelper
.
IsEmptyOrWhiteSpace
(m_sCounterName))
15
{
16
if
(!
object
)
17
{
18
PrintFormat
(
"ScenarioFramework Action: Logic Counter not found for Action %1"
,
this
,
LogLevel
.ERROR);
19
return
;
20
}
21
22
logicCounter = SCR_ScenarioFrameworkLogicCounter.Cast(
object
);
23
if
(!logicCounter)
24
{
25
PrintFormat
(
"ScenarioFramework Action: Logic Counter %1 not found for Action %2"
,
object
.
GetName
(),
this
,
LogLevel
.ERROR);
26
return
;
27
}
28
}
29
else
30
{
31
IEntity
entity =
GetGame
().
GetWorld
().FindEntityByName(m_sCounterName);
32
if
(!entity)
33
{
34
PrintFormat
(
"ScenarioFramework Action: Could not find %1 for Action %2"
, m_sCounterName,
this
,
LogLevel
.ERROR);
35
return
;
36
}
37
38
logicCounter = SCR_ScenarioFrameworkLogicCounter.Cast(entity);
39
if
(!logicCounter)
40
{
41
PrintFormat
(
"ScenarioFramework Action: Logic Counter %1 not found for Action %2"
, m_sCounterName,
this
,
LogLevel
.ERROR);
42
return
;
43
}
44
}
45
46
logicCounter.Decrease(
object
);
47
}
48
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
GetName
string GetName()
Definition
SCR_NotificationSenderComponent.c:15
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
IEntity::GetWorld
proto external BaseWorld GetWorld()
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionDecreaseLogicCounter
Definition
SCR_ScenarioFrameworkActionDecreaseLogicCounter.c:3
SCR_StringHelper
Definition
SCR_StringHelper.c:2
SCR_StringHelper::IsEmptyOrWhiteSpace
static bool IsEmptyOrWhiteSpace(string input)
Definition
SCR_StringHelper.c:594
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
PrintFormat
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionDecreaseLogicCounter.c
Generated by
1.17.0