FxAddDebris: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Creates a debris particle effect. ==Syntax== <syntaxhighlight lang="lua"> bool fxAddDebris ( float posX, float posY, float posZ, [int colorR=255, int colorG=0, int colorB=0,...)
 
mNo edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}


Creates a debris particle effect.
Creates a debris particle effect (e.g. bits that fly off a car when ramming a wall).


==Syntax==
==Syntax==
Line 10: Line 10:


===Required Arguments===
===Required Arguments===
*'''posX, posY, posZ:''' the world coordinates where the effect originates.
*'''posX, posY, posZ:''' the world coordinates where the debris originates.


===Optional Arguments===
===Optional Arguments===
*'''colorR, colorG, colorB, colorA:''' the color and alpha (transparency) of the debris effect.
*'''colorR, colorG, colorB, colorA:''' the color and alpha (transparency) of the debris effect.
*'''scale:''' the size of the effect.
*'''scale:''' the size of the chunks.
*'''count:''' the number of effects to create.
*'''count:''' the number of chunks to create.


==See Also==
==See Also==
{{Client Effects functions}}
{{Client Effects functions}}

Revision as of 20:44, 25 June 2008

Creates a debris particle effect (e.g. bits that fly off a car when ramming a wall).

Syntax

bool fxAddDebris ( 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, posY, posZ: the world coordinates where the debris originates.

Optional Arguments

  • colorR, colorG, colorB, colorA: the color and alpha (transparency) of the debris effect.
  • scale: the size of the chunks.
  • count: the number of chunks to create.

See Also