Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DetonatorHasConnectedChargesCondition.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
7 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
8 {
9 SCR_GadgetComponent gadgetComp = data.GetHeldGadgetComponent();
10 if (!gadgetComp)
11 return GetReturnResult(false);
12
13 if (gadgetComp.GetType() != EGadgetType.DETONATOR)
14 return GetReturnResult(false);
15
16 SCR_DetonatorGadgetComponent detonatorComp = SCR_DetonatorGadgetComponent.Cast(gadgetComp);
17 if (!detonatorComp)
18 return GetReturnResult(false);
19
20 return GetReturnResult(detonatorComp.GetNumberOfConnectedCharges() > 0);
21 }
22}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.