Scripting/Squirrel/Functions/Player.SetAlpha: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "== Example == <source lang=squirrel> function onPlayerCommand( player, cmd, text ) { if ( cmd == "invisible" ) { player.SetAlpha(0,0) } else if ( cmd == "visible"...") |
(No difference)
|
Revision as of 06:53, 8 August 2015
Example
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "invisible" )
{
player.SetAlpha(0,0)
}
else if ( cmd == "visible" )
{
player.SetAlpha(255,255)
}
}