Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionChangeTime.c
Go to the documentation of this file.
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}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
SCR_FieldOfViewSettings Attribute