Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SCR_ScenarioFrameworkActionBase Interface Reference

Inherited by SCR_ScenarioFrameworkActionAI, SCR_ScenarioFrameworkActionAddItemToInventory, SCR_ScenarioFrameworkActionAppendBriefingEntryText, SCR_ScenarioFrameworkActionAppendBriefingEntryTextBasedOnTask, SCR_ScenarioFrameworkActionBasedOnConditions, SCR_ScenarioFrameworkActionChangeLayerActivationType, SCR_ScenarioFrameworkActionChangeLayerTerminationStatus, SCR_ScenarioFrameworkActionChangeTaskState, SCR_ScenarioFrameworkActionChangeTaskTitleOrDescription, SCR_ScenarioFrameworkActionChangeTriggerActivationPresence, SCR_ScenarioFrameworkActionCompareCounterAndExecute, SCR_ScenarioFrameworkActionCountInventoryItemsAndExecuteAction, SCR_ScenarioFrameworkActionDamageWheel, SCR_ScenarioFrameworkActionDecreaseLogicCounter, SCR_ScenarioFrameworkActionDeleteEntity, SCR_ScenarioFrameworkActionDeleteMarker, SCR_ScenarioFrameworkActionEndMission, SCR_ScenarioFrameworkActionExecuteFunction, SCR_ScenarioFrameworkActionFailTaskIfVehiclesInTriggerDestroyed, SCR_ScenarioFrameworkActionFeedParamToTaskDescription, SCR_ScenarioFrameworkActionIncrementCounter, SCR_ScenarioFrameworkActionIntroVoicelineBasedOnTasks, SCR_ScenarioFrameworkActionItemSafeguard, SCR_ScenarioFrameworkActionKillEntity, SCR_ScenarioFrameworkActionLockOrUnlockAllTargetVehiclesInTrigger, SCR_ScenarioFrameworkActionLockOrUnlockVehicle, SCR_ScenarioFrameworkActionLoopOverNotRandomlySelectedLayers, SCR_ScenarioFrameworkActionMedical, SCR_ScenarioFrameworkActionOnCompartmentEnteredOrLeft, SCR_ScenarioFrameworkActionOnEngineStartedOrStop, SCR_ScenarioFrameworkActionOnUserActionEvent, SCR_ScenarioFrameworkActionPlaySound, SCR_ScenarioFrameworkActionPlaySoundOnEntity, SCR_ScenarioFrameworkActionPrepareAreaFromDynamicDespawn, SCR_ScenarioFrameworkActionProcessVoicelineEnumAndString, SCR_ScenarioFrameworkActionQRFDispacher, SCR_ScenarioFrameworkActionRandomAction, SCR_ScenarioFrameworkActionRemoveAreaFromDynamicDespawn, SCR_ScenarioFrameworkActionRemoveItemFromInventory, SCR_ScenarioFrameworkActionResetCounter, SCR_ScenarioFrameworkActionRestoreLayerToDefault, SCR_ScenarioFrameworkActionSetBriefingEntryText, SCR_ScenarioFrameworkActionSetBriefingEntryTextBasedOnGeneratedTasks, SCR_ScenarioFrameworkActionSetEntityPosition, SCR_ScenarioFrameworkActionSetEntityScale, SCR_ScenarioFrameworkActionSetExecutionEntryTextBasedOnGeneratedTasks, SCR_ScenarioFrameworkActionSetFuelConsumption, SCR_ScenarioFrameworkActionSetFuelPercentage, SCR_ScenarioFrameworkActionSetMissionEndScreen, SCR_ScenarioFrameworkActionSetSupplyPercentage, SCR_ScenarioFrameworkActionSetVehicleCruiseSpeed, SCR_ScenarioFrameworkActionShowHint, SCR_ScenarioFrameworkActionShowPopupNotification, SCR_ScenarioFrameworkActionSpawnClosestObjectFromList, SCR_ScenarioFrameworkActionSpawnObjectBasedOnDistance, SCR_ScenarioFrameworkActionSpawnObjects, SCR_ScenarioFrameworkActionToggleEngine, SCR_ScenarioFrameworkActionToggleLights, SCR_ScenarioFrameworkActionVoiceOverPlayLine, SCR_ScenarioFrameworkActionVoiceOverPlaySequence, SCR_ScenarioFrameworkActionWaitAndExecute, SCR_ScenarioFrameworkCreateVariable, SCR_ScenarioFrameworkGetVariableValue, SCR_ScenarioFrameworkSetSignal, and SCR_ScenarioFrameworkSetVariable.

Public Member Functions

void Init (IEntity entity)
 Initializes entity, sets OnActivate and OnDeactivate event handlers for SCR_BaseTriggerEntity.
 
bool CanActivate ()
 Checks if action can be activated, handles maximum activation limit, increments activation count if possible.
 
bool ValidateInputEntity (IEntity object, SCR_ScenarioFrameworkGet getter, out IEntity entity)
 Validates input entity for ScenarioFramework Action, checks if it's from layer or getter, returns true if valid.
 
void OnActivate (IEntity object)
 
array< ref SCR_ScenarioFrameworkActionBaseGetSubActions ()
 
void RestoreToDefault ()
 Restores default settings for action and resets number of activations.
 
void SpawnObjects (notnull array< string > aObjectsNames, SCR_ScenarioFrameworkEActivationType eActivationType)
 Spawns objects from an array, checks for existence, activation type, and initializes them with specified activation type.
 

Public Attributes

bool m_bDebug
 
int m_iMaxNumberOfActivations
 
IEntity m_Entity
 
int m_iNumberOfActivations
 

Member Function Documentation

◆ CanActivate()

bool SCR_ScenarioFrameworkActionBase.CanActivate ( )

Checks if action can be activated, handles maximum activation limit, increments activation count if possible.

Returns
true if action can be activated, false otherwise.

◆ GetSubActions()

array< ref SCR_ScenarioFrameworkActionBase > SCR_ScenarioFrameworkActionBase.GetSubActions ( )

◆ Init()

void SCR_ScenarioFrameworkActionBase.Init ( IEntity  entity)

Initializes entity, sets OnActivate and OnDeactivate event handlers for SCR_BaseTriggerEntity.

Parameters
[in]entitythat initialized this action.

Implemented in SCR_ScenarioFrameworkActionQRFDispacher.

◆ OnActivate()

void SCR_ScenarioFrameworkActionBase.OnActivate ( IEntity  object)
Parameters
[in]object

Implemented in SCR_ScenarioFrameworkActionAI, SCR_ScenarioFrameworkActionMedical, SCR_ScenarioFrameworkActionAddItemToInventory, SCR_ScenarioFrameworkActionAppendBriefingEntryText, SCR_ScenarioFrameworkActionAppendBriefingEntryTextBasedOnTask, SCR_ScenarioFrameworkActionBasedOnConditions, SCR_ScenarioFrameworkActionChangeLayerActivationType, SCR_ScenarioFrameworkActionChangeLayerTerminationStatus, SCR_ScenarioFrameworkActionChangeTaskState, SCR_ScenarioFrameworkActionChangeTaskTitleOrDescription, SCR_ScenarioFrameworkActionChangeTriggerActivationPresence, SCR_ScenarioFrameworkActionCompareCounterAndExecute, SCR_ScenarioFrameworkActionCountInventoryItemsAndExecuteAction, SCR_ScenarioFrameworkActionDamageWheel, SCR_ScenarioFrameworkActionDecreaseLogicCounter, SCR_ScenarioFrameworkActionDeleteEntity, SCR_ScenarioFrameworkActionDeleteMarker, SCR_ScenarioFrameworkActionEndMission, SCR_ScenarioFrameworkActionExecuteFunction, SCR_ScenarioFrameworkActionFailTaskIfVehiclesInTriggerDestroyed, SCR_ScenarioFrameworkActionFeedParamToTaskDescription, SCR_ScenarioFrameworkActionIncrementCounter, SCR_ScenarioFrameworkActionIntroVoicelineBasedOnTasks, SCR_ScenarioFrameworkActionItemSafeguard, SCR_ScenarioFrameworkActionKillEntity, SCR_ScenarioFrameworkActionLockOrUnlockAllTargetVehiclesInTrigger, SCR_ScenarioFrameworkActionLockOrUnlockVehicle, SCR_ScenarioFrameworkActionLoopOverNotRandomlySelectedLayers, SCR_ScenarioFrameworkActionOnCompartmentEnteredOrLeft, SCR_ScenarioFrameworkActionOnEngineStartedOrStop, SCR_ScenarioFrameworkActionOnUserActionEvent, SCR_ScenarioFrameworkActionPlaySound, SCR_ScenarioFrameworkActionPlaySoundOnEntity, SCR_ScenarioFrameworkActionPrepareAreaFromDynamicDespawn, SCR_ScenarioFrameworkActionProcessVoicelineEnumAndString, SCR_ScenarioFrameworkActionRandomAction, SCR_ScenarioFrameworkActionRemoveAreaFromDynamicDespawn, SCR_ScenarioFrameworkActionRemoveItemFromInventory, SCR_ScenarioFrameworkActionResetCounter, SCR_ScenarioFrameworkActionRestoreLayerToDefault, SCR_ScenarioFrameworkActionSetBriefingEntryText, SCR_ScenarioFrameworkActionSetBriefingEntryTextBasedOnGeneratedTasks, SCR_ScenarioFrameworkActionSetEntityPosition, SCR_ScenarioFrameworkActionSetEntityScale, SCR_ScenarioFrameworkActionSetExecutionEntryTextBasedOnGeneratedTasks, SCR_ScenarioFrameworkActionSetFuelConsumption, SCR_ScenarioFrameworkActionSetFuelPercentage, SCR_ScenarioFrameworkActionSetMissionEndScreen, SCR_ScenarioFrameworkSetSignal, SCR_ScenarioFrameworkActionSetSupplyPercentage, SCR_ScenarioFrameworkActionSetVehicleCruiseSpeed, SCR_ScenarioFrameworkActionShowHint, SCR_ScenarioFrameworkActionShowPopupNotification, SCR_ScenarioFrameworkActionSpawnClosestObjectFromList, SCR_ScenarioFrameworkActionSpawnObjectBasedOnDistance, SCR_ScenarioFrameworkActionSpawnObjects, SCR_ScenarioFrameworkActionToggleEngine, SCR_ScenarioFrameworkActionToggleLights, SCR_ScenarioFrameworkActionVoiceOverPlayLine, SCR_ScenarioFrameworkActionVoiceOverPlaySequence, SCR_ScenarioFrameworkActionWaitAndExecute, SCR_ScenarioFrameworkCreateVariable, SCR_ScenarioFrameworkGetVariableValue, SCR_ScenarioFrameworkSetVariable, and SCR_ScenarioFrameworkActionQRFDispacher.

◆ RestoreToDefault()

void SCR_ScenarioFrameworkActionBase.RestoreToDefault ( )

Restores default settings for action and resets number of activations.

◆ SpawnObjects()

void SCR_ScenarioFrameworkActionBase.SpawnObjects ( notnull array< string >  aObjectsNames,
SCR_ScenarioFrameworkEActivationType  eActivationType 
)

Spawns objects from an array, checks for existence, activation type, and initializes them with specified activation type.

Parameters
[in]aObjectsNamesAn array of object names for spawning in the scenario.
[in]eActivationTypeeActivationType represents the activation type for the objects being spawned in the scenario.

◆ ValidateInputEntity()

bool SCR_ScenarioFrameworkActionBase.ValidateInputEntity ( IEntity  object,
SCR_ScenarioFrameworkGet  getter,
out IEntity  entity 
)

Validates input entity for ScenarioFramework Action, checks if it's from layer or getter, returns true if valid.

Parameters
[in]objectValidates if input object is a valid entity for the action
[in]getterGetter represents an optional parameter used to retrieve an entity from a scenario framework action.
[out]entitythat is valid for this action
Returns
true if the input entity is valid, otherwise false.

Member Data Documentation

◆ m_bDebug

bool SCR_ScenarioFrameworkActionBase.m_bDebug

◆ m_Entity

IEntity SCR_ScenarioFrameworkActionBase.m_Entity

◆ m_iMaxNumberOfActivations

int SCR_ScenarioFrameworkActionBase.m_iMaxNumberOfActivations

◆ m_iNumberOfActivations

int SCR_ScenarioFrameworkActionBase.m_iNumberOfActivations

The documentation for this interface was generated from the following file: