IsCommandQueueEmpty
From Spheriki
Check if a person's command queue is empty.
Contents |
Usage
- 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
- For more information about command queues, see the QueuePersonCommand() and QueuePersonScript() functions.