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_EditorHasLastNotificationLocationActionCondition.c
Go to the documentation of this file.
1
2
[
BaseContainerProps
(),
BaseContainerCustomStringTitleField
(
"Has notification location"
)]
3
class
SCR_EditorHasLastNotificationLocationActionCondition
:
SCR_AvailableActionCondition
4
{
5
[
Attribute
(
"5"
,
desc
:
"How long will the hint be active if it was valid in seconds"
)]
6
protected
int
m_DisplayTime
;
7
8
protected
SCR_NotificationsComponent
m_NotificationsComponent
;
9
protected
vector
m_vLocation
=
vector
.Zero;
10
protected
bool
m_bShowLocation
;
11
protected
bool
m_bIsListeningToDisable
;
12
13
//------------------------------------------------------------------------------------------------
14
override
bool
IsAvailable
(notnull
SCR_AvailableActionsConditionData
data
)
15
{
16
if
(!
m_NotificationsComponent
)
17
{
18
m_NotificationsComponent
= SCR_NotificationsComponent.GetInstance();
19
if
(!
m_NotificationsComponent
)
20
return
false
;
21
}
22
23
vector
location
;
24
m_NotificationsComponent
.GetLastNotificationLocation(
location
);
25
if
(
location
!=
m_vLocation
)
26
{
27
m_vLocation
=
location
;
28
m_bShowLocation
=
true
;
29
30
if
(
m_DisplayTime
> 0)
31
{
32
if
(
m_bIsListeningToDisable
)
33
GetGame
().GetCallqueue().Remove(
SetLocationDisabled
);
34
35
m_bIsListeningToDisable
=
true
;
36
GetGame
().GetCallqueue().CallLater(
SetLocationDisabled
,
m_DisplayTime
* 1000);
37
}
38
}
39
40
return
GetReturnResult
(
m_vLocation
!=
vector
.Zero &&
m_bShowLocation
);
41
}
42
43
//------------------------------------------------------------------------------------------------
44
protected
void
SetLocationDisabled
()
45
{
46
m_bShowLocation
=
false
;
47
m_bIsListeningToDisable
=
false
;
48
}
49
}
location
vector location
Definition
BlenderEndpoints.c:48
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
Definition
SCR_HitZoneGroupNameHolder.c:27
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_AvailableActionCondition
A single available action condition representation.
Definition
SCR_AvailableActionCondition.c:4
SCR_AvailableActionCondition::GetReturnResult
bool GetReturnResult(bool desiredResult)
Definition
SCR_AvailableActionCondition.c:22
SCR_AvailableActionsConditionData
Definition
SCR_AvailableActionsConditionData.c:6
SCR_EditorHasLastNotificationLocationActionCondition
Returns true if has last notification location and time was less then given var.
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:4
SCR_EditorHasLastNotificationLocationActionCondition::IsAvailable
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:14
SCR_EditorHasLastNotificationLocationActionCondition::m_DisplayTime
int m_DisplayTime
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:6
SCR_EditorHasLastNotificationLocationActionCondition::SetLocationDisabled
void SetLocationDisabled()
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:44
SCR_EditorHasLastNotificationLocationActionCondition::m_bIsListeningToDisable
bool m_bIsListeningToDisable
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:11
SCR_EditorHasLastNotificationLocationActionCondition::m_NotificationsComponent
SCR_NotificationsComponent m_NotificationsComponent
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:8
SCR_EditorHasLastNotificationLocationActionCondition::m_vLocation
vector m_vLocation
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:9
SCR_EditorHasLastNotificationLocationActionCondition::m_bShowLocation
bool m_bShowLocation
Definition
SCR_EditorHasLastNotificationLocationActionCondition.c:10
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
HUD
AvailableActions
Conditions
Editor
SCR_EditorHasLastNotificationLocationActionCondition.c
Generated by
1.17.0