Author Topic: How to identify who types a command into chat  (Read 334 times)

I am writing a script and don't know how to identify the player object that's associated with a person that types a command into the chat. I want to create an AI that follows the person that types a chat command in.

function serverCmdCommandName(%Client, %Arg0, %Arg1, (...), %ArgN)
{
   %Player = %Client.player;

   //Stuff here
}