Scripting/Squirrel/Functions/Player.SetAlpha

From Vice City Multiplayer
Revision as of 06:53, 8 August 2015 by CRAST (talk | contribs) (Created page with "== Example == <source lang=squirrel> function onPlayerCommand( player, cmd, text ) { if ( cmd == "invisible" ) { player.SetAlpha(0,0) } else if ( cmd == "visible"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Example

function onPlayerCommand( player, cmd, text )
{
  if ( cmd == "invisible" )
  {
    player.SetAlpha(0,0)
  }
  else if ( cmd == "visible" )
  {
    player.SetAlpha(255,255)
  }
}