ActionController

Namespace: SharpPluginLoader.Core.Actions

Represents an instance of the cActionController class.

public class ActionController : SharpPluginLoader.Core.MtObject

Inheritance ObjectNativeWrapperMtObjectActionController

Properties

CurrentAction

The action that is currently being performed.

public ActionInfo& CurrentAction { get; }

Property Value

ActionInfo&

NextAction

The action that will be performed next.

public ActionInfo& NextAction { get; }

Property Value

ActionInfo&

PreviousAction

The action that was performed before the current one.

public ActionInfo& PreviousAction { get; }

Property Value

ActionInfo&

Owner

The owner of this action controller.

public Entity Owner { get; }

Property Value

Entity

Instance

The native pointer.

public nint Instance { get; set; }

Property Value

IntPtr

Constructors

ActionController(IntPtr)

public ActionController(nint instance)

Parameters

instance IntPtr

ActionController()

public ActionController()

Methods

GetActionList(Int32)

Gets an action list by its index.

public ActionList GetActionList(int actionSet)

Parameters

actionSet Int32
The index of the action set

Returns

ActionList
The list of actions for the requested action set

Exceptions

ArgumentOutOfRangeException

DoAction(Int32, Int32)

Makes the entity perform an action.

public void DoAction(int actionSet, int actionId)

Parameters

actionSet Int32
The action set to use

actionId Int32
The id of the action within the action set

Remarks:

For monsters use the Monster.ForceAction(Int32) method instead.