Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NeutralizeEntityContextAction.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
4{
5 override int GetParam()
6 {
7 return GetGame().GetPlayerController().GetPlayerId();
8 }
9
10 override bool CanBeShown(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
11 {
12 return selectedEntity && selectedEntity.CanDestroy();
13 }
14
15 override bool CanBePerformed(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
16 {
17 return selectedEntity && selectedEntity.CanDestroy() && !selectedEntity.IsDestroyed();
18 }
19
20 override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags, int param = -1)
21 {
22 if (!InitPerform())
23 return;
24
25 foreach (SCR_EditableEntityComponent entity : selectedEntities)
26 {
27 if (CanBePerformed(entity, cursorWorldPosition, flags))
28 {
29 entity.Destroy(param);
30 }
31 }
32 }
33};
SCR_EAIThreatSectorFlags flags
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")