onPlayerActionChange
Description
This function is triggered when a player changes his action or we can say move!. (not animation)
| Name | Description |
|---|---|
| player | The pointer of the player |
| oldAction | Old action of the player |
| newAction | New action of the player |
Example
function onPlayerActionChange(player, oldAction, newAction) { PrivMessage(player, "Your current action ID: " + newAction);}