|
Arma Reforger Script API
|
Behavior for short-lived fast reactions to get away from some danger source. More...
Public Member Functions | |
| void | InitParameters (IEntity dangerEntity, vector dangerPos) |
| override int | GetCause () |
| Returns cause value, used for SCR_AISetting. | |
| void | SCR_AIMoveFromDangerBehavior (SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity, vector dangerPos, IEntity dangerEntity) |
Public Member Functions inherited from SCR_AIBehaviorBase | |
| void | SCR_AIBehaviorBase (SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity) |
| SCR_AIActivityBase | GetGroupActivityContext () |
| override void | OnActionSelected () |
| override void | OnActionFailed () |
| override void | OnActionCompleted () |
Public Member Functions inherited from SCR_AIActionBase | |
| override float | EvaluatePriorityLevel () |
| void | SetPriorityLevel (int priority) |
| EAIActionFailReason | GetFailReason () |
| void | SetFailReason (EAIActionFailReason failReason) |
| Fail reason is an optional value which can be used to figure out why action failed. | |
| override void | OnSetActionState (EAIActionState state) |
| override void | OnSetSuspended (bool suspended) |
| override void | OnComplete () |
| override void | OnFail () |
| override void | OnActionRemoved () |
| string | GetActionDebugInfo () |
| string | GetDebugPanelText () |
| override void | OnActionDeselected () |
| void | OnActionExecuted () |
| bool | IsActionInterruptable () |
| void | SetActionInterruptable (bool IsInterruptable) |
| void | SetParametersToBTVariables (SCR_AIActionTask node) |
| void | GetParametersFromBTVariables (SCR_AIActionTask node) |
| TStringArray | GetPortNames () |
| float | GetRestrictedPriorityLevel (float minimumLevel=PRIORITY_LEVEL_NORMAL) |
| Limits priority level for actions such that those are performed in "NORMAL" and "PLAYER" priority level but not in "GAMEMASTER". | |
Public Member Functions inherited from AIActionBase | |
| proto external float | Evaluate () |
| proto external float | GetPriority () |
| proto external void | SetPriority (float priority) |
| proto external bool | GetActionIsSuspended () |
| proto external void | SetActionIsSuspended (bool val) |
| proto external bool | GetIsUniqueInActionQueue () |
| proto external void | SetIsUniqueInActionQueue (bool unique) |
| proto external EAIActionState | GetActionState () |
| proto external void | SetActionState (EAIActionState state) |
| proto external void | Fail () |
| proto external void | Complete () |
| proto external bool | GetRemoveAction () |
| proto external void | SetRemoveAction (bool val) |
| proto external AIActionBase | GetRelatedGroupActivity () |
| proto external void | SetRelatedGroupActivity (AIActionBase related) |
| float | CustomEvaluate () |
| bool | OnMessage (AIMessage msg) |
Static Public Member Functions | |
| static bool | ExistsBehaviorForEntity (SCR_AIUtilityComponent utility, IEntity ent) |
| Returns true if there exists a SCR_AIMoveFromDangerBehavior with m_DangerEntity assigned to 'ent'. | |
Public Attributes | |
| ref SCR_BTParam< vector > | m_DangerPosition = new SCR_BTParam<vector>("DangerPosition") |
| ref SCR_BTParam< IEntity > | m_DangerEntity = new SCR_BTParam<IEntity>("DangerEntity") |
| ref SCR_BTParam< ECharacterStance > | m_Stance = new SCR_BTParam<ECharacterStance>("CharacterStance") |
| ref SCR_BTParam< EMovementType > | m_MovementType = new SCR_BTParam<EMovementType>("MovementType") |
Public Attributes inherited from SCR_AIBehaviorBase | |
| SCR_AIUtilityComponent | m_Utility |
| float | m_fThreat = 0.0 |
| bool | m_bAllowLook = true |
| bool | m_bResetLook = false |
| bool | m_bUseCombatMove = false |
Public Attributes inherited from SCR_AIActionBase | |
| bool | m_bIsInterruptable = true |
| ResourceName | m_sBehaviorTree |
| ref ScriptInvoker | m_OnActionCompleted = new ScriptInvoker() |
| ref ScriptInvoker | m_OnActionFailed = new ScriptInvoker() |
| ref array< SCR_BTParamBase > | m_aParams = {} |
Behavior for short-lived fast reactions to get away from some danger source.
| void SCR_AIMoveFromDangerBehavior.SCR_AIMoveFromDangerBehavior | ( | SCR_AIUtilityComponent | utility, |
| SCR_AIActivityBase | groupActivity, | ||
| vector | dangerPos, | ||
| IEntity | dangerEntity ) |
|
static |
Returns true if there exists a SCR_AIMoveFromDangerBehavior with m_DangerEntity assigned to 'ent'.
| override int SCR_AIMoveFromDangerBehavior.GetCause | ( | ) |
Returns cause value, used for SCR_AISetting.
The return value should tell for which reason this action is being executed, to decide if certain SCR_AISetting can be applied when this action runs, or not.
Implements SCR_AIActionBase.
| void SCR_AIMoveFromDangerBehavior.InitParameters | ( | IEntity | dangerEntity, |
| vector | dangerPos ) |
| ref SCR_BTParam<IEntity> SCR_AIMoveFromDangerBehavior.m_DangerEntity = new SCR_BTParam<IEntity>("DangerEntity") |
| ref SCR_BTParam<vector> SCR_AIMoveFromDangerBehavior.m_DangerPosition = new SCR_BTParam<vector>("DangerPosition") |
| ref SCR_BTParam<EMovementType> SCR_AIMoveFromDangerBehavior.m_MovementType = new SCR_BTParam<EMovementType>("MovementType") |
| ref SCR_BTParam<ECharacterStance> SCR_AIMoveFromDangerBehavior.m_Stance = new SCR_BTParam<ECharacterStance>("CharacterStance") |