onPlayerArmourChange
Description
This is called when player's armour amount changes.
| Name | Description |
|---|---|
| player | The pointer of the player |
| lastAR | The amount of armour player had before the change |
| newAR | The current armour amount |
Example
This will tell the player if they lost armour.
function onPlayerArmourChange(player, lastAR, newAR) { if(lastAR > newAR) { MessagePlayer("You just lost " + (lastAR - newAR) + " armour.", player); }}