onClientArmourChange

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This is called when the clients armour changes.

Syntax

  1. function onClientArmourChange( int iOldArmour, int iNewArmour )

Arguments

  • iOldArmour - The player's Old Armour Value
  • iNewArmour - The player's New Armour Value

Returns

This event does not handle return values.

Example

This example will Message the player when their armour changes

  1.  
  2. function onClientArmourChange( iOldArmour, iNewArmour )
  3. {
  4. Message( "You have: " + iNewArmour + " Armour remaining" );
  5. return 1;
  6. }
  7.  

Notes

The function Message was used in this example. More info about it can be found in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox