Scripting/Squirrel/Functions/Player.Alpha: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
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(...") |
(No difference)
|
Revision as of 10:25, 21 February 2015
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.