IsCommandQueueEmpty

From Spheriki

Jump to: navigation, search

Check if a person's command queue is empty.


Contents

Usage

boolean IsCommandQueueEmpty(person_name);
  • person_name string. The name of the person to check the command queue of.
  • boolean is returned, true if the person's command queue is empty, false otherwise.


Examples

The following code sample will clear the command queue of the person named "bob" if it is not empty.

if (IsCommandQueueEmpty("bob")) {
  ClearPersonCommands("bob");
}


Notes


See also

Personal tools