Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SmartActionWaypoint.c
Go to the documentation of this file.
5{
6 [Attribute("", UIWidgets.EditBox, "Static reference to entity with smart action")]
7 string m_sStaticEntityName;
8
9 [Attribute("", UIWidgets.EditBox, "Tag of the smart action")]
10 string m_sSmartActionTag;
11
12 IEntity m_SmartActionEntity;
13
14 void GetSmartActionEntity(out IEntity smartActionEntity, out string smartActionTag)
15 {
16 if (m_SmartActionEntity)
17 {
18 smartActionEntity = m_SmartActionEntity;
19 }
20 else
21 {
22 IEntity ent = GetGame().GetWorld().FindEntityByName(m_sStaticEntityName);
23 if (ent)
24 smartActionEntity = ent;
25 }
26 if (m_sSmartActionTag == string.Empty)
27 Debug.Error("Unspecified smart action tag");
28 smartActionTag = m_sSmartActionTag;
29 }
30
31 void SetSmartActionEntity(IEntity entityWithSmartAction, string smartActionTag)
32 {
33 m_SmartActionEntity = entityWithSmartAction;
34 m_sSmartActionTag = smartActionTag;
35 }
36};
ArmaReforgerScripted GetGame()
Definition game.c:1398
Definition Debug.c:13
proto external BaseWorld GetWorld()
void SCR_AIWaypoint(IEntitySource src, IEntity parent)
SCR_FieldOfViewSettings Attribute