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_PingContextAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_PingContextAction
:
SCR_BaseContextAction
3
{
4
[
Attribute
(
"0"
)]
5
bool
m_IsUnlimitedOnly;
6
7
override
bool
CanBeShown(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
8
{
9
// Only visible on gamepad
10
if
(
flags
&
EEditorContextActionFlags
.USING_MOUSE_AND_KEYBOARD)
11
{
12
return
false
;
13
}
14
15
//~ Check if unlimited editor else do not show (Otherwise players can see the action in photomode)
16
if
(m_IsUnlimitedOnly)
17
{
18
SCR_EditorManagerEntity
editorManager =
SCR_EditorManagerEntity
.GetInstance();
19
if
(!editorManager || editorManager.IsLimited())
20
return
false
;
21
}
22
23
// Only show action if cursorWorldPosition is valid
24
return
cursorWorldPosition !=
vector
.Zero;
25
}
26
27
override
bool
CanBePerformed(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
28
{
29
return
true
;
30
}
31
32
override
void
Perform(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
,
int
param = -1)
33
{
34
SCR_PingEditorComponent
pingComponent =
SCR_PingEditorComponent
.Cast(
SCR_PingEditorComponent
.GetInstance(
SCR_PingEditorComponent
));
35
36
pingComponent.
SendPing
(m_IsUnlimitedOnly, cursorWorldPosition, hoveredEntity);
37
}
38
};
flags
SCR_EAIThreatSectorFlags flags
Definition
AIControlComponentSerializer.c:16
EEditorContextActionFlags
EEditorContextActionFlags
Definition
EEditorContextActionFlags.c:2
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleUIInfo
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
Definition
SCR_ArsenalManagerComponent.c:1752
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
SCR_BaseContextAction
Definition
SCR_BaseContextAction.c:8
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_PingContextAction
Definition
SCR_PingContextAction.c:3
SCR_PingEditorComponent
Definition
SCR_PingEditorComponent.c:71
SCR_PingEditorComponent::SendPing
void SendPing(bool unlimitedOnly=false, vector position=vector.Zero, SCR_EditableEntityComponent target=null)
Definition
SCR_PingEditorComponent.c:102
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
Containers
Actions
ContextActions
SCR_PingContextAction.c
Generated by
1.17.0