Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditorHasLastNotificationLocationActionCondition.c
Go to the documentation of this file.
1
2[BaseContainerProps(), BaseContainerCustomStringTitleField("Has notification location")]
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;
12
13 //------------------------------------------------------------------------------------------------
15 {
17 {
18 m_NotificationsComponent = SCR_NotificationsComponent.GetInstance();
20 return false;
21 }
22
24 m_NotificationsComponent.GetLastNotificationLocation(location);
25 if (location != m_vLocation)
26 {
28 m_bShowLocation = true;
29
30 if (m_DisplayTime > 0)
31 {
33 GetGame().GetCallqueue().Remove(SetLocationDisabled);
34
36 GetGame().GetCallqueue().CallLater(SetLocationDisabled, m_DisplayTime * 1000);
37 }
38 }
39
41 }
42
43 //------------------------------------------------------------------------------------------------
44 protected void SetLocationDisabled()
45 {
46 m_bShowLocation = false;
48 }
49}
vector location
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
A single available action condition representation.
Returns true if has last notification location and time was less then given var.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute