Squirrel/Server/Functions/Players/MarkerScale

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Squirrel/Title|Player.MarkerScale}} This function sets the player marker scale == Syntax == <code>Player.MarkerScale = int</code> Default is: 2 == Example == Set the pl...")
 

Latest revision as of 01:01, 26 August 2014

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function sets the player marker scale

[edit] Syntax

  1. Player.MarkerScale = int

Default is: 2

[edit] Example

Set the player marker scale to big when player types /bigscale

  1.  
  2. function onPlayerCommand ( pPlayer, szCommand, szParams ) {
  3.  
  4. switch ( szCommand ) {
  5.  
  6. case "bigscale": {
  7.  
  8. pPlayer.MarkerScale = 50;
  9.  
  10. return;
  11. }
  12. }
  13. }
  14.  

[edit] Notes

The function Player.MarkerScale and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox