Entity::alpha: Difference between revisions

From RAGE Multiplayer Wiki
m (Replaced HTML with template)
mNo edit summary
 
Line 2: Line 2:


==Getter==
==Getter==
* '''<span style="color:#008017">Number</span>'''
* {{RageType|Number}}
==Setter==
==Setter==
* '''<span style="color:#008017">Number</span>'''
* {{RageType|Number}}


== Example ==
== Example ==
Line 15: Line 15:
}}
}}


==See Also==
==See also==
{{Entity_definition}}
{{Entity_definition}}
[[Category:Entity API]]
[[Category:Server-side Property]]

Latest revision as of 10:24, 30 April 2019

This property using for setting or getting entity alpha.

Getter

  • Number

Setter

  • Number

Example

Server-Side
const alpha = player.alpha;
console.log(alpha); // return e.g. 255
player.alpha = 0; // make the player transparent

See also