Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PingContextAction.c
Go to the documentation of this file.
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 {
35
36 pingComponent.SendPing(m_IsUnlimitedOnly, cursorWorldPosition, hoveredEntity);
37 }
38};
SCR_EAIThreatSectorFlags flags
EEditorContextActionFlags
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
void SendPing(bool unlimitedOnly=false, vector position=vector.Zero, SCR_EditableEntityComponent target=null)
SCR_FieldOfViewSettings Attribute