Scripting/Squirrel/Functions/Player.Alpha

From Vice City Multiplayer
Revision as of 10:25, 21 February 2015 by Doom Killer (talk | contribs) (Created page with "== Syntax == <pre>player.Alpha</pre> == Example == The following example will set a player's alpha to 0, means hiding him: <source lang=squirrel> function onPlayerCommand(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Syntax

player.Alpha

Example

The following example will set a player's alpha to 0, means hiding him:

function onPlayerCommand( player, cmd, text );
{
 if ( cmd == "hideme" )
 {
  player.Alpha = 0;
  Message("You are now invisible!");
 }
}

Notes

Call onPlayerCommand were used in this example. More info about them in the corresponding pages.