Example #1
0
 /// <summary>
 ///   Sets the status of modes ACTION_MODE_* on a creature.
 /// </summary>
 public static void SetActionMode(uint oCreature, ActionModeType nMode, bool nStatus)
 {
     Internal.NativeFunctions.StackPushInteger(nStatus ? 1 : 0);
     Internal.NativeFunctions.StackPushInteger(nMode.InternalValue);
     Internal.NativeFunctions.StackPushObject(oCreature);
     Internal.NativeFunctions.CallBuiltIn(736);
 }
Example #2
0
 /// <summary>
 ///   Gets the status of ACTION_MODE_* modes on a creature.
 /// </summary>
 public static bool GetActionMode(uint oCreature, ActionModeType nMode)
 {
     Internal.NativeFunctions.StackPushInteger(nMode.InternalValue);
     Internal.NativeFunctions.StackPushObject(oCreature);
     Internal.NativeFunctions.CallBuiltIn(735);
     return(Internal.NativeFunctions.StackPopInteger() == 1);
 }