FxAddGlass

From Multi Theft Auto: Wiki
Revision as of 20:00, 25 June 2008 by Talidan (talk | contribs) (New page: __NOTOC__ {{Client function}} This function creates a glass particle effect. ==Syntax== <syntaxhighlight lang="lua"> bool fxAddGlass ( float posX, float posY, float posZ, [int colorR=255, int colorG=0...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function creates a glass particle effect.

Syntax

bool fxAddGlass ( float posX, float posY, float posZ, [int colorR=255, int colorG=0, int colorB=0, int colorA=255, float scale=1.0, int count=1] )

Required Arguments

  • posX: A float representing the x position of the glass
  • posY: A float representing the y position of the glass
  • posZ: A float representing the z position of the glass

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • colorR: An integer number representing the amount of red to use in the colouring of the marker (0 - 255).
  • colorG: An integer number representing the amount of green to use in the colouring of the marker (0 - 255).
  • colorB: An integer number representing the amount of blue to use in the colouring of the marker (0 - 255).
  • scale: A float representing the size of the particle effect, where 1 is the standard size.
  • count: The density of the particle effect.

Returns

Returns a true if the operation was successful, false otherwise.

Example

This page lacks an example

--add an example here

See Also