ActionController
Namespace: SharpPluginLoader.Core.Actions
Represents an instance of the cActionController class.
public class ActionController : SharpPluginLoader.Core.MtObject
Inheritance Object → NativeWrapper → MtObject → ActionController
Properties
CurrentAction
The action that is currently being performed.
public ActionInfo& CurrentAction { get; }
Property Value
NextAction
The action that will be performed next.
public ActionInfo& NextAction { get; }
Property Value
PreviousAction
The action that was performed before the current one.
public ActionInfo& PreviousAction { get; }
Property Value
Owner
The owner of this action controller.
public Entity Owner { get; }
Property Value
Instance
The native pointer.
public nint Instance { get; set; }
Property Value
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
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.