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_ScenarioFrameworkActionChangeTime.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionChangeTime
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
"8"
,
UIWidgets
.Slider,
"Time of day (hours)"
,
"0 23 1"
)]
5
int
m_iHours;
6
7
[
Attribute
(
"0"
,
UIWidgets
.Slider,
"Time of day (minutes)"
,
"0 59 1"
)]
8
int
m_iMinutes;
9
10
//------------------------------------------------------------------------------------------------
11
override
void
OnActivate
(
IEntity
object
)
12
{
13
if
(!CanActivate())
14
return
;
15
16
ChimeraWorld
world =
GetGame
().GetWorld();
17
if
(!world)
18
return
;
19
20
TimeAndWeatherManagerEntity
manager = world.GetTimeAndWeatherManager();
21
if
(!manager)
22
return
;
23
24
manager.SetHoursMinutesSeconds(m_iHours, m_iMinutes, 0);
25
}
26
}
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
ChimeraWorld
Definition
ChimeraWorld.c:13
IEntity
Definition
IEntity.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionChangeTime
Definition
SCR_ScenarioFrameworkActionChangeTime.c:3
TimeAndWeatherManagerEntity
Definition
TimeAndWeatherManagerEntity.c:26
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionChangeTime.c
Generated by
1.17.0