Task Class

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Represents a task. This class cannot be inherited.
Inheritance Hierarchy

SystemObject
  RageTask
    RageAnimationTask

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public class Task

The Task type exposes the following members.

Properties

  NameDescription
Public propertyIsActive

Gets a value indicating whether this task is active.

A task is considered active if its status is not None.

Public propertyName
Gets the name of the method that was used to invoke this task. Eg. "RappelFromHelicopter".
Public propertyPed
Gets the Ped this task is assigned to.
Public propertyStatus
Gets the current status of this task.
Top
Methods

  NameDescription
Public methodStatic memberGetTask
Gets an instance of Task to check the status of a task invoked by the specified native.
Protected methodIsValid
Public methodWaitForCompletion
Sleeps the active GameFiber until the task completes.
Public methodWaitForCompletion(Int32)
Sleeps the active GameFiber until the task completes.
Public methodWaitForStatus(TaskStatus)
Sleeps the active GameFiber until the task reaches the specified status.
Public methodWaitForStatus(TaskStatus, Int32)
Sleeps the active GameFiber until the task reaches the specified status.
Top
See Also

Reference