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_SmartActionWaypoint.c
Go to the documentation of this file.
1
class
SCR_SmartActionWaypointClass
:
SCR_AIWaypointClass
2
{
3
};
4
class
SCR_SmartActionWaypoint
:
SCR_AIWaypoint
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
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
Debug
Definition
Debug.c:13
IEntity
Definition
IEntity.c:13
IEntity::GetWorld
proto external BaseWorld GetWorld()
SCR_AIWaypointClass
Definition
SCR_AIWaypoint.c:2
SCR_AIWaypoint::SCR_AIWaypoint
void SCR_AIWaypoint(IEntitySource src, IEntity parent)
Definition
SCR_AIWaypoint.c:16
SCR_SmartActionWaypointClass
Definition
SCR_SmartActionWaypoint.c:2
SCR_SmartActionWaypoint
Definition
SCR_SmartActionWaypoint.c:5
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
AI
Behavior
SCR_SmartActionWaypoint.c
Generated by
1.17.0