unreal.GameplayTask_TimeLimitedExecution

class unreal.GameplayTask_TimeLimitedExecution(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: GameplayTask

Adds time limit for running a child task - child task needs to be created with UGameplayTask_TimeLimitedExecution passed as TaskOwner - activations are tied together and when either UGameplayTask_TimeLimitedExecution or child task is activated, other one starts as well - OnFinished and OnTimeExpired are mutually exclusive

C++ Source:

  • Module: GameplayTasks

  • File: GameplayTask_TimeLimitedExecution.h

Editor Properties: (see get_editor_property/set_editor_property)

  • on_finished (TaskFinishDelegate): [Read-Write] On Finished: called when child task finishes execution before time runs out

  • on_time_expired (TaskFinishDelegate): [Read-Write] On Time Expired: called when time runs out

property on_finished: TaskFinishDelegate

[Read-Write] On Finished: called when child task finishes execution before time runs out

Type:

(TaskFinishDelegate)

property on_time_expired: TaskFinishDelegate

[Read-Write] On Time Expired: called when time runs out

Type:

(TaskFinishDelegate)