Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HasMultipleWeaponsCondition.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
6 {
7 BaseWeaponManagerComponent weaponMgr;
8 if (data.GetIsCharacterInVehicle())
9 {
10 TurretControllerComponent turretController = data.GetCurrentTurretController();
11 if (!turretController)
12 return GetReturnResult(false);
13
14 weaponMgr = turretController.GetWeaponManager();
15 }
16 else
17 {
18 CharacterControllerComponent controller = data.GetCharacterController();
19 if (!controller)
20 return GetReturnResult(false);
21
22 weaponMgr = controller.GetWeaponManagerComponent();
23 }
24
25 return GetReturnResult(weaponMgr && weaponMgr.HasAnotherSelectableWeapon());
26 }
27}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.