Please note: AgentID as used in scripts is a compiled form of the real AgentID and InstanceID.

======Generic Functions======

^ Function ^ Returns ^ Description ^
| [[WriteConsole]](text, adminConsole, NetworkID, textColor) | None | This outputs the specified text to the script caller's console. | 
| [[ExecuteCommand]](commandLine, NetworkID, adminConsole) | None | Executes another command (script or hard coded) No / in the commandLine. |

======Agents======
=====Generic=====
^ Function ^ Returns ^ Description ^
| [[GetAgent]](NetworkID) | AgentID | Gets an agent ID from a NetworkID |
| [[GetAgentPosition]](AgentID) | position[x,y,z] | Gets the current position of the specified agent. |

=====Agent Action Packets=====
^ Function ^ Returns ^ Description ^
| [[AgentMsg]](StatID, NewValue, exclusionID, expiresIn, AgentID) | None | Sends the [[UPDATE_GENERIC_VALUE]] packet. |
| [[UpdateVitalStatus]](StatusID, Value, AgentID) | None | Updates a bit in [[SET_VITAL_STATUS]] |


======Ghosts======
^ Function ^ Returns ^ Description ^
| [[SpawnGhost]](name, position, InstanceID) | AgentID | Spawns a ghost player. Note: "position" is a table.|
| [[SpawnGhostEx]](name, position[x,y,z], extra[int profession, int campaign, int sex, int height, int face, int hairStyle, int hairColor, int skinColor], InstanceID) | AgentID | |

======Players (Ghosts and Connected Players)======
^ Function ^ Returns ^ Description ^
| [[ChatMessage]](message, channel, InstanceID) | None | Sends a chat message to all players in the instance on the specified channel. Can also be used for players.|