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(...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Syntax ==


<pre>player.Alpha</pre>
== Related Functions ==


== Example ==
{{Scripting/Squirrel/Functions/Player_Functions}}
The following example will set a player's alpha to 0, means hiding him:
[[Category:Scripting/Squirrel/Functions/Player_Functions]]
 
<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.

Latest revision as of 18:45, 30 January 2017

Related Functions

Player Game Functions

These functions exist for compatibility with the R2 Squirrel server.