Scripting/Squirrel/Functions/Player.Alpha
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.