Arma Reforger Script API
|
Public Member Functions | |
void | InitParameters (vector defendDirection, float priorityLevel) |
void | SCR_AIDefendActivity (SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint, vector defendDirection, float priority=PRIORITY_ACTIVITY_DEFEND, float priorityLevel=PRIORITY_LEVEL_NORMAL) |
void | AddAgentToRadialCover (AIAgent agent) |
void | ClearRadialCoverAgents () |
int | GetRadialCoverAgentsCount () |
void | AllocateAgentsToRadialCover () |
override string | GetActionDebugInfo () |
override void | OnActionDeselected () |
override void | OnActionFailed () |
override void | OnActionCompleted () |
bool | SendDefendSector (AIAgent who, vector directionAxis, float angleRange) |
Public Member Functions inherited from SCR_AIActivityBase | |
array< ref SCR_AIActivityFeatureBase > | GetActivityFeatures () |
SCR_AIActivityFeatureBase | FindActivityFeature (TypeName featureType) |
void | InitParameters (AIWaypoint relatedWaypoint) |
void | SCR_AIActivityBase (SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint) |
Public Member Functions inherited from SCR_AIActionBase | |
override float | EvaluatePriorityLevel () |
void | SetPriorityLevel (int priority) |
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 | OnActionSelected () |
override void | OnActionDeselected () |
void | OnActionExecuted () |
void | OnActionCompleted () |
void | OnActionFailed () |
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 ref AIActionBase | GetRelatedGroupActivity () |
proto external void | SetRelatedGroupActivity (AIActionBase related) |
float | CustomEvaluate () |
float | EvaluatePriorityLevel () |
void | OnSetSuspended (bool suspended) |
void | OnSetActionState (EAIActionState state) |
void | OnFail () |
void | OnComplete () |
bool | OnMessage (AIMessage msg) |
void | OnActionSelected () |
void | OnActionDeselected () |
void | OnActionRemoved () |
Static Public Member Functions | |
static vector | GetDefendDirection (IEntity centralEntity, float directionDistance) |
calculates a direction vector from centralEntity towards frontal direction of the centralEntity | |
Public Attributes | |
ref SCR_BTParam< vector > | m_vDefendDirection = new SCR_BTParam<vector>(SCR_AIActionTask.DEFEND_DIRECTION_PORT) |
Public Attributes inherited from SCR_AIActivityBase | |
SCR_AIGroupUtilityComponent | m_Utility |
ref SCR_BTParam< bool > | m_bIsWaypointRelated = new SCR_BTParam<bool>(SCR_AIActionTask.WAYPOINT_RELATED_PORT) |
AIWaypoint | m_RelatedWaypoint = null |
bool | m_bAllowFireteamRebalance = true |
Public Attributes inherited from SCR_AIActionBase | |
bool | m_bIsInterruptable = true |
ResourceName | m_sBehaviorTree |
ResourceName | m_sAbortBehaviorTree |
ref ScriptInvoker | m_OnActionCompleted = new ScriptInvoker() |
ref ScriptInvoker | m_OnActionFailed = new ScriptInvoker() |
ref array< SCR_BTParamBase > | m_aParams = {} |
Protected Attributes | |
ref array< AIAgent > | m_aRadialCoverAgents = {} |
Protected Attributes inherited from SCR_AIActionBase | |
ref SCR_BTParam< float > | m_fPriorityLevel = new SCR_BTParam<float>(SCR_AIActionTask.PRIORITY_LEVEL_PORT) |
void SCR_AIDefendActivity.SCR_AIDefendActivity | ( | SCR_AIGroupUtilityComponent | utility, |
AIWaypoint | relatedWaypoint, | ||
vector | defendDirection, | ||
float | priority = PRIORITY_ACTIVITY_DEFEND , |
||
float | priorityLevel = PRIORITY_LEVEL_NORMAL |
||
) |
void SCR_AIDefendActivity.AddAgentToRadialCover | ( | AIAgent | agent | ) |
void SCR_AIDefendActivity.AllocateAgentsToRadialCover | ( | ) |
void SCR_AIDefendActivity.ClearRadialCoverAgents | ( | ) |
override string SCR_AIDefendActivity.GetActionDebugInfo | ( | ) |
Implements SCR_AIActionBase.
|
static |
calculates a direction vector from centralEntity towards frontal direction of the centralEntity
int SCR_AIDefendActivity.GetRadialCoverAgentsCount | ( | ) |
void SCR_AIDefendActivity.InitParameters | ( | vector | defendDirection, |
float | priorityLevel | ||
) |
override void SCR_AIDefendActivity.OnActionCompleted | ( | ) |
Implements SCR_AIActionBase.
override void SCR_AIDefendActivity.OnActionDeselected | ( | ) |
Implements SCR_AIActionBase.
override void SCR_AIDefendActivity.OnActionFailed | ( | ) |
Implements SCR_AIActionBase.
bool SCR_AIDefendActivity.SendDefendSector | ( | AIAgent | who, |
vector | directionAxis, | ||
float | angleRange | ||
) |
|
protected |
ref SCR_BTParam<vector> SCR_AIDefendActivity.m_vDefendDirection = new SCR_BTParam<vector>(SCR_AIActionTask.DEFEND_DIRECTION_PORT) |