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_ScenarioFrameworkDayTimeCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_ScenarioFrameworkDayTimeCondition
:
SCR_ScenarioFrameworkActivationConditionBase
3
{
4
[
Attribute
(defvalue:
"1"
,
desc
:
"If true, this can be activated only during the day. If false, only during the night."
,
category
:
"Time"
)]
5
bool
m_bOnlyDuringDay;
6
7
//------------------------------------------------------------------------------------------------
8
override
bool
Init
(
IEntity
entity)
9
{
10
// Here you can debug specific Condition instance.
11
// This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Condition Inspector
12
if
(m_bDebug)
13
Print
(
"[SCR_ScenarioFrameworkDayTimeCondition.Init] debug line ("
+ __FILE__ +
" L"
+ __LINE__ +
")"
,
LogLevel
.WARNING);
14
15
ChimeraWorld
world =
ChimeraWorld
.CastFrom(entity.
GetWorld
());
16
if
(!world)
17
return
true
;
18
19
TimeAndWeatherManagerEntity
manager = world.GetTimeAndWeatherManager();
20
if
(!manager)
21
return
true
;
22
23
TimeContainer
timeContainer = manager.
GetTime
();
24
int
currentHour = timeContainer.m_iHours;
25
26
if
(m_bOnlyDuringDay)
27
return
manager.IsDayHour(currentHour);
28
else
29
return
manager.IsNightHour(currentHour);
30
}
31
}
Init
override void Init()
Definition
CharacterCameraHandlerComponent.c:40
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
TimeContainer
void TimeContainer(int hours=0, int minutes=0, int seconds=0)
Definition
TimeAndWeatherManagerEntity.c:947
ChimeraWorld
Definition
ChimeraWorld.c:13
IEntity
Definition
IEntity.c:13
IEntity::GetWorld
proto external BaseWorld GetWorld()
SCR_ScenarioFrameworkActivationConditionBase
Definition
SCR_ScenarioFrameworkActivationConditionBase.c:3
SCR_ScenarioFrameworkDayTimeCondition
Definition
SCR_ScenarioFrameworkDayTimeCondition.c:3
TimeAndWeatherManagerEntity
Definition
TimeAndWeatherManagerEntity.c:26
TimeAndWeatherManagerEntity::GetTime
TimeContainer GetTime()
Definition
TimeAndWeatherManagerEntity.c:465
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
Conditions
SCR_ScenarioFrameworkDayTimeCondition.c
Generated by
1.17.0