Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
AIWeaponTargetSelector.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
12 class AIWeaponTargetSelector: ScriptAndConfig
13 {
14  proto external void Init(notnull IEntity owner);
18  proto external void SetSelectionProperties(float maxLastSeenDirect, float maxLastSeenIndirect, float maxLastSeen, float minTraceFractionIndirect, float maxDistanceInfantry, float maxDistanceVehicles, float maxTimeSinceEndangered, float maxDistanceDisarmed);
22  proto external void SetTargetScoreConstants(EAIUnitType targetUnitType, float offset, float slope);
26  proto external bool SelectWeaponAndTarget(notnull array<IEntity> assignedTargets, float assignedTargetsScoreIncrement, float dangerTargetsScoreIncrement, bool useCompartmentWeapons, array<int> weaponTypesWhitelist = null, array<int> weaponTypesBlacklist = null);
30  proto BaseTarget GetSelectedTarget();
34  proto void GetSelectedWeapon(out BaseWeaponComponent outWeapon, out int outMuzzleId, out BaseMagazineComponent outMagazine);
38  proto external EAIUnitType GetUnitTypesCanAttack();
42  proto void GetSelectedWeaponProperties(out float outMinDistance, out float outMaxDistance, out bool outDirectDamage);
46  proto void GetMostRelevantTargetCantAttack(out BaseTarget target, out float targetScore);
50  proto external bool SelectWeaponAgainstUnitType(EAIUnitType targetUnitType, bool useCompartmentWeapons);
54  proto external float CalculateTargetScore(BaseTarget target);
59  proto external bool HasWeaponOfType(EWeaponType weaponType, bool searchCompartment);
60  proto external BaseWeaponComponent FindWeaponOfType(EWeaponType weaponType, bool searchCompartment);
62  proto external int GetMagazineCount(typename magazineWellType, bool searchCompartment);
63 }
64 
AIWeaponTargetSelector
Definition: AIWeaponTargetSelector.c:12
BaseTarget
Definition: BaseTarget.c:12
BaseWeaponComponent
Definition: BaseWeaponComponent.c:12
EAIUnitType
EAIUnitType
Definition: EAIUnitType.c:12
EWeaponType
EWeaponType
Definition: EWeaponType.c:12