Arma Reforger Script API
|
Public Member Functions | |
override void | FinishTask (notnull SCR_BaseTask task) |
Finishes scenario task, checks conditions, and calls superclass method. | |
IEntity | GetTaskEntity () |
void | SetTaskEntity (IEntity entity) |
SCR_BaseTask | CreateTask (SCR_ScenarioFrameworkLayerTask layer) |
Spawns entity for scenario layer task and creates base task. | |
void | SetTaskPrefab (ResourceName sTaskPrefab) |
void | SetSpawnedEntityName (notnull SCR_ScenarioFrameworkTask task, string name) |
Sets spawned entity name for a task in scenario framework. | |
void | RPC_SpawnedEntityName (int taskID, string name) |
Sets spawned entity name for a scenario task. | |
void | SetTaskExecutionBriefing (notnull SCR_ScenarioFrameworkTask task, string description) |
Sets task execution briefing for given task with description. | |
void | RPC_TaskExecutionBriefing (int taskID, string description) |
Sets task execution briefing description for specified task ID. | |
Public Member Functions inherited from SCR_BaseTaskSupportEntity | |
void | SetTargetFaction (notnull SCR_BaseTask task, notnull Faction faction) |
void | RPC_SetTargetFaction (int taskID, int factionIndex) |
SCR_BaseTask | CreateTask () |
void | Initialize () |
void | OnTaskListOpen (notnull SCR_UITaskManagerComponent uiTaskManagerComponent) |
ResourceName | GetTaskDescriptionWidgetResource () |
ResourceName | GetResourceName () |
Resource | GetTaskPrefab () |
void | MoveTask (vector newPosition, int taskID) |
void | RPC_MoveTask (int taskID, vector newPosition) |
void | AssignTask (notnull SCR_BaseTask task, notnull SCR_BaseTaskExecutor assignee, bool forced=false) |
void | RPC_AssignTask (int playerID, int taskID, float timestamp, bool forced) |
Assigns a task on clients. | |
void | CancelTask (int taskID) |
void | FinishTask (notnull SCR_BaseTask task) |
void | FailTask (notnull SCR_BaseTask task) |
void | UnassignTask (notnull SCR_BaseTask task, notnull SCR_BaseTaskExecutor assignee, SCR_EUnassignReason reason) |
void | RPC_UnassignTask (int taskID, int playerID, SCR_EUnassignReason reason) |
Assigns a task on clients. | |
void | SetTaskState (notnull SCR_BaseTask task, SCR_TaskState state) |
void | RPC_SetTaskState (int taskID, SCR_TaskState state) |
void | SetTaskDescription (notnull SCR_BaseTask task, string description) |
void | RPC_SetTaskDescription (int taskID, string description) |
void | SetTaskTitle (notnull SCR_BaseTask task, string title) |
void | RPC_SetTaskTitle (int taskID, string title) |
void | OnMapOpen (MapConfiguration config) |
override void | EOnInit (IEntity owner) |
void | SCR_BaseTaskSupportEntity (IEntitySource src, IEntity parent) |
void | ~SCR_BaseTaskSupportEntity () |
Protected Member Functions | |
SCR_Faction | GetCharacterFaction (IEntity unit) |
Returns the facton of the character if it exists, otherwise null. | |
Protected Member Functions inherited from SCR_BaseTaskSupportEntity | |
void | RPC_CancelTask (int taskID) |
void | RPC_FinishTask (int taskID) |
void | RPC_FailTask (int taskID) |
void | RegisterContextualMenuCallbacks () |
Protected Attributes | |
IEntity | m_Entity |
Protected Attributes inherited from SCR_BaseTaskSupportEntity | |
ResourceName | m_sTaskDescriptionWidgetResource |
ResourceName | m_sTaskPrefab |
SCR_BaseTask SCR_ScenarioFrameworkTaskSupportEntity.CreateTask | ( | SCR_ScenarioFrameworkLayerTask | layer | ) |
Spawns entity for scenario layer task and creates base task.
[in] | layer | Spawned entity layer for task creation. |
Implemented in SCR_ScenarioFrameworkTaskClearAreaSupportEntity.
override void SCR_ScenarioFrameworkTaskSupportEntity.FinishTask | ( | notnull SCR_BaseTask | task | ) |
Finishes scenario task, checks conditions, and calls superclass method.
[in] | task | Finishes scenario framework task, checks conditions for completion. |
Implements SCR_BaseTaskSupportEntity.
|
protected |
Returns the facton of the character if it exists, otherwise null.
[in] | unit | Represents an in-game unit entity, used to determine its faction in the method. |
IEntity SCR_ScenarioFrameworkTaskSupportEntity.GetTaskEntity | ( | ) |
void SCR_ScenarioFrameworkTaskSupportEntity.RPC_SpawnedEntityName | ( | int | taskID, |
string | name | ||
) |
Sets spawned entity name for a scenario task.
[in] | taskID | TaskID represents the unique identifier for the scenario task in the task manager. |
[in] | name | Represents the name of an entity spawned in-game, used for identification purposes. |
void SCR_ScenarioFrameworkTaskSupportEntity.RPC_TaskExecutionBriefing | ( | int | taskID, |
string | description | ||
) |
Sets task execution briefing description for specified task ID.
[in] | taskID | Task ID is an identifier for a specific task in the scenario, used to reference it in the method for setting its execution brief |
[in] | description | Sets briefing description for a specific task. |
void SCR_ScenarioFrameworkTaskSupportEntity.SetSpawnedEntityName | ( | notnull SCR_ScenarioFrameworkTask | task, |
string | name | ||
) |
Sets spawned entity name for a task in scenario framework.
[in] | task | Sets spawned entity name for a scenario task. |
[in] | name | Sets the name for spawned entity in scenario task. |
void SCR_ScenarioFrameworkTaskSupportEntity.SetTaskEntity | ( | IEntity | entity | ) |
[in] | entity | Represents an object or entity in the game world assigned to this task. |
void SCR_ScenarioFrameworkTaskSupportEntity.SetTaskExecutionBriefing | ( | notnull SCR_ScenarioFrameworkTask | task, |
string | description | ||
) |
Sets task execution briefing for given task with description.
[in] | task | Sets briefing for a specific task with given description. |
[in] | description | Sets the briefing description for a specific task in the scenario. |
void SCR_ScenarioFrameworkTaskSupportEntity.SetTaskPrefab | ( | ResourceName | sTaskPrefab | ) |
[in] | sTaskPrefab | The method sets the prefab for a task. |
|
protected |