Scripting/Squirrel/Functions/Player.Alpha: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(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(...")
 
Line 2: Line 2:


<pre>player.Alpha</pre>
<pre>player.Alpha</pre>
== Example ==
The following example will set a player's alpha to 0, means hiding him:
<source lang=squirrel>
function onPlayerCommand( player, cmd, text );
{
if ( cmd == "hideme" )
{
  player.Alpha = 0;
  Message("You are now invisible!");
}
}
</source>
=== Notes ===
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.

Revision as of 10:27, 21 February 2015

Syntax

player.Alpha