Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WeaponSightsHasZeroing.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
[
BaseContainerProps
()]
3
class
SCR_WeaponSightHasZeroingCondition
:
SCR_AvailableActionCondition
4
{
5
//------------------------------------------------------------------------------------------------
8
override
bool
IsAvailable(
SCR_AvailableActionsConditionData
data
)
9
{
10
if
(!
data
)
11
return
false
;
12
13
BaseWeaponComponent
currentweapon =
data
.GetCurrentWeapon();
14
if
(!currentweapon)
15
return
false
;
16
17
float
zeroing = currentweapon.GetCurrentSightsZeroing();
18
return
GetReturnResult(zeroing > 0);
19
}
20
};
SCR_WeaponSightHasZeroingCondition
Definition:
SCR_WeaponSightsHasZeroing.c:3
SCR_AvailableActionsConditionData
Definition:
SCR_AvailableActionsConditionData.c:5
SCR_AvailableActionCondition
A single available action condition representation.
Definition:
SCR_AvailableActionsCondition.c:3
BaseWeaponComponent
Definition:
BaseWeaponComponent.c:12
data
Get all prefabs that have the spawner data
Definition:
SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Weapon
SCR_WeaponSightsHasZeroing.c
Generated by
1.8.17