Scripting/Squirrel/Functions/Object.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
No edit summary
Line 10: Line 10:


This example will create a object and prints its current alpha on console.
This example will create a object and prints its current alpha on console.
<source lang=squirrel>
<pre>function onScriptLoad()
<pre>function onScriptLoad()
{
{

Revision as of 14:50, 9 March 2016

Syntax

Object.Alpha;

Arguments

> Object - The object instance.

Example

This example will create a object and prints its current alpha on console. <source lang=squirrel>

function onScriptLoad()
{
   myObject <- CreateObject( 334, 1, Vector( -2261.12, 753.12, 211.123 ),255 );
print(myObject.Alpha);
}