|
Arma Reforger Script API
|
Public Member Functions | |
| override void | OnInit (AIAgent owner) |
| override array< string > | GetVariablesOut () |
| override array< string > | GetVariablesIn () |
| override ENodeResult | EOnTaskSimulate (AIAgent owner, float dt) |
| Scripted nodes are suposed to return SUCCESS, FAIL or RUNNING state. | |
| void | ClearPorts () |
| void | GetTargetAngularBounds (IEntity shooter, AimPoint targetAimpoint, out vector sizeVectorX, out vector sizeVectorY, out float angularSize, out float distance) |
| returns vectors of aimpoint volume projected onto shooter's BB center and the angular size of the target aimpoint | |
| float | GetDistanceFactor (float distance) |
| returns factor of error scale based on distance to target | |
| float | GetTargetIlluminationFactor (BaseTarget tgt) |
| returns 1.0 if target is well illuminated, and a bigger value if target is poorly illuminated. | |
| float | GetRandomFactor (EAISkill skill, float mu) |
| float | GetTolerance (IEntity observer, IEntity target, float angularSize, float distance, EWeaponType weaponType) |
| basic tolerance based on angular size of target in degrees | |
| float | GetAngularSpeedFactor (IEntity observer, IEntity enemy, out bool setBigTolerance) |
| float | GetWeaponTypeFactor (EWeaponType weaponType) |
| float | GetOffsetWeaponTypeFactor (EWeaponType weaponType) |
| Scales offset depending on weapon type. | |
| AimPoint | GetAimPoint (BaseTarget target, EAimPointType aimpointTypes[3]) |
Public Member Functions inherited from AITaskScripted | |
| void | OnEnter (AIAgent owner) |
| void | OnAbort (AIAgent owner, Node nodeCausingAbort) |
Public Member Functions inherited from Node | |
| proto external int | GetNodeID () |
| proto external TypeName | GetVariableType (bool inputPort, string name) |
| proto bool | GetVariableIn (string name, out void val) |
| proto void | SetVariableOut (string name, void val) |
| proto void | ClearVariable (string name) |
| proto void | GetCallstackStr (out string val) |
| proto void | GetParentTreeName (out string val) |
Static Public Member Functions | |
| static override bool | VisibleInPalette () |
Static Public Attributes | |
| static const string | PORT_ERROR_OFFSET = "ErrorOffset" |
| static const string | PORT_BASE_TARGET = "BaseTargetIn" |
| static const string | PORT_AIM_POINT = "AimPoint" |
| static const string | PORT_TOLERANCE = "AimingTolerance" |
| static const string | PORT_AIMPOINT_TYPE_0 = "AimpointType0" |
| static const string | PORT_AIMPOINT_TYPE_1 = "AimpointType1" |
| static const float | CLOSE_RANGE_THRESHOLD = 15.0 |
| static const float | LONG_RANGE_THRESHOLD = 200.0 |
| static const float | AIMING_ERROR_SCALE = 1.0 |
| static const float | AIMING_ERROR_FACTOR_MIN = 0.4 |
| static const float | AIMING_ERROR_CLOSE_RANGE_FACTOR_MIN = 0.05 |
| static const float | AIMING_ERROR_FACTOR_MAX = 1.4 |
| static const float | MAXIMAL_TOLERANCE = 10.0 |
| static const float | MINIMAL_TOLERANCE = 0.003 |
Static Protected Member Functions | |
| static override string | GetOnHoverDescription () |
Static Protected Member Functions inherited from Node | |
| static bool | CanReturnRunning () |
Protected Attributes | |
| SCR_AICombatComponent | m_CombatComponent |
| EAimingPreference | m_eAimingPreference |
| EAimPointType | m_eAimPointType |
| float | m_fDefaultPrecisionXY |
Static Protected Attributes | |
| static ref TStringArray | s_aVarsOut |
| static ref TStringArray | s_aVarsIn |
Static Protected Attributes inherited from Node | |
| static ref TStringArray | m_aEmptyVars = {} |
Additional Inherited Members | |
Protected Member Functions inherited from AITaskScripted | |
| string | GetNodeMiddleText () |
| void SCR_AIGetAimErrorOffset.ClearPorts | ( | ) |
| override ENodeResult SCR_AIGetAimErrorOffset.EOnTaskSimulate | ( | AIAgent | owner, |
| float | dt ) |
Scripted nodes are suposed to return SUCCESS, FAIL or RUNNING state.
Implements AITaskScripted.
| AimPoint SCR_AIGetAimErrorOffset.GetAimPoint | ( | BaseTarget | target, |
| EAimPointType | aimpointTypes[3] ) |
| float SCR_AIGetAimErrorOffset.GetAngularSpeedFactor | ( | IEntity | observer, |
| IEntity | enemy, | ||
| out bool | setBigTolerance ) |
| float SCR_AIGetAimErrorOffset.GetDistanceFactor | ( | float | distance | ) |
returns factor of error scale based on distance to target
| float SCR_AIGetAimErrorOffset.GetOffsetWeaponTypeFactor | ( | EWeaponType | weaponType | ) |
Scales offset depending on weapon type.
|
staticprotected |
Implements Node.
| float SCR_AIGetAimErrorOffset.GetRandomFactor | ( | EAISkill | skill, |
| float | mu ) |
| void SCR_AIGetAimErrorOffset.GetTargetAngularBounds | ( | IEntity | shooter, |
| AimPoint | targetAimpoint, | ||
| out vector | sizeVectorX, | ||
| out vector | sizeVectorY, | ||
| out float | angularSize, | ||
| out float | distance ) |
returns vectors of aimpoint volume projected onto shooter's BB center and the angular size of the target aimpoint
| float SCR_AIGetAimErrorOffset.GetTargetIlluminationFactor | ( | BaseTarget | tgt | ) |
returns 1.0 if target is well illuminated, and a bigger value if target is poorly illuminated.
| float SCR_AIGetAimErrorOffset.GetTolerance | ( | IEntity | observer, |
| IEntity | target, | ||
| float | angularSize, | ||
| float | distance, | ||
| EWeaponType | weaponType ) |
basic tolerance based on angular size of target in degrees
| override array< string > SCR_AIGetAimErrorOffset.GetVariablesIn | ( | ) |
Implements Node.
| override array< string > SCR_AIGetAimErrorOffset.GetVariablesOut | ( | ) |
Implements Node.
| float SCR_AIGetAimErrorOffset.GetWeaponTypeFactor | ( | EWeaponType | weaponType | ) |
| override void SCR_AIGetAimErrorOffset.OnInit | ( | AIAgent | owner | ) |
Implements AITaskScripted.
|
static |
Implements Node.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
|
staticprotected |