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.
|
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_ScenarioFrameworkActionBase > | GetSubActions () |
|
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.
|
|
◆ 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()
- Parameters
-
Implemented in SCR_ScenarioFrameworkActionBasedOnConditions, SCR_ScenarioFrameworkActionCompareCounterAndExecute, SCR_ScenarioFrameworkActionCountInventoryItemsAndExecuteAction, SCR_ScenarioFrameworkActionItemSafeguard, SCR_ScenarioFrameworkActionLoopOverNotRandomlySelectedLayers, SCR_ScenarioFrameworkActionOnCompartmentEnteredOrLeft, SCR_ScenarioFrameworkActionOnEngineStartedOrStop, SCR_ScenarioFrameworkActionOnUserActionEvent, SCR_ScenarioFrameworkActionRandomAction, SCR_ScenarioFrameworkActionVoiceOverPlayLine, SCR_ScenarioFrameworkActionVoiceOverPlaySequence, and SCR_ScenarioFrameworkActionWaitAndExecute.
◆ Init()
void SCR_ScenarioFrameworkActionBase.Init |
( |
IEntity |
entity | ) |
|
◆ OnActivate()
void SCR_ScenarioFrameworkActionBase.OnActivate |
( |
IEntity |
object | ) |
|
- Parameters
-
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] | aObjectsNames | An array of object names for spawning in the scenario. |
[in] | eActivationType | eActivationType 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] | object | Validates if input object is a valid entity for the action |
[in] | getter | Getter represents an optional parameter used to retrieve an entity from a scenario framework action. |
[out] | entity | that is valid for this action |
- Returns
- true if the input entity is valid, otherwise false.
◆ 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:
- Game/ScenarioFramework/Actions/SCR_ScenarioFrameworkActionBase.c