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_ScenarioFrameworkActionChangeWeather.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionChangeWeather
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"The name of the weather preference as it can be found in weatherStates.conf."
)]
5
string
m_sWeatherPresetName;
6
7
[
Attribute
(
"0"
,
desc
:
"Weather it can change during gameplay"
)]
8
bool
m_bRandomWeatherChanges;
9
10
[
Attribute
(defvalue:
"0"
,
desc
:
"Transition Duration"
,
params
:
"0 inf 0.01"
)]
11
float
m_fTransitionDuration;
12
13
[
Attribute
(defvalue:
"1"
,
desc
:
"Automatic Wind behaviour. Untick to further tune it with other attributes."
)]
14
bool
m_bAutomaticWind;
15
16
[
Attribute
(defvalue:
"0"
,
desc
:
"Wind Speed"
,
params
:
"0 inf 0.01"
)]
17
float
m_fWindSpeed;
18
19
[
Attribute
(defvalue:
"0"
,
desc
:
"Wind Direction"
,
params
:
"0 inf 0.01"
)]
20
float
m_fWindDirection;
21
22
//------------------------------------------------------------------------------------------------
23
override
void
OnActivate
(
IEntity
object
)
24
{
25
if
(!CanActivate())
26
return
;
27
28
ChimeraWorld
world =
GetGame
().GetWorld();
29
if
(!world)
30
return
;
31
32
TimeAndWeatherManagerEntity
manager = world.GetTimeAndWeatherManager();
33
if
(!manager)
34
return
;
35
36
manager.
ForceWeatherTo
(!m_bRandomWeatherChanges, m_sWeatherPresetName, m_fTransitionDuration);
37
manager.
DelayedSetWindOverride
(!m_bAutomaticWind);
38
39
if
(m_bAutomaticWind)
40
return
;
41
42
manager.
DelayedOverrideWindSpeed
(m_fWindSpeed);
43
manager.
DelayedOverrideWindDirection
(m_fWindDirection);
44
}
45
}
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
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
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_ScenarioFrameworkActionChangeWeather
Definition
SCR_ScenarioFrameworkActionChangeWeather.c:3
TimeAndWeatherManagerEntity
Definition
TimeAndWeatherManagerEntity.c:26
TimeAndWeatherManagerEntity::ForceWeatherTo
void ForceWeatherTo(bool setLooping, string weatherID=string.Empty, float transitionDuration=0, float stateDuration=0.001, int playerThatChangedWeather=0)
Definition
TimeAndWeatherManagerEntity.c:265
TimeAndWeatherManagerEntity::DelayedSetWindOverride
void DelayedSetWindOverride(bool overrideWind, int playerChangingWind=-1)
Definition
TimeAndWeatherManagerEntity.c:672
TimeAndWeatherManagerEntity::DelayedOverrideWindSpeed
void DelayedOverrideWindSpeed(float windSpeed, int playerChangingWind=-1)
Definition
TimeAndWeatherManagerEntity.c:692
TimeAndWeatherManagerEntity::DelayedOverrideWindDirection
void DelayedOverrideWindDirection(float windDirection, int playerChangingWind=-1)
Definition
TimeAndWeatherManagerEntity.c:712
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionChangeWeather.c
Generated by
1.17.0