FxAddBulletImpact: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Creates a bullet impact particle effect. ==Syntax== <syntaxhighlight lang="lua"> bool fxAddBulletImpact ( float posX, float posY, float posZ, float dirX, float dirY, float d...)
 
mNo edit summary
Line 16: Line 16:
*'''smokeSize:''' the size of the smoke cloud.
*'''smokeSize:''' the size of the smoke cloud.
*'''sparkCount:''' the number of sparks to create.
*'''sparkCount:''' the number of sparks to create.
*'''smokeIntensity:'''  
*'''smokeIntensity:''' the amount/transparency of smoke, ranges from 0 to 1.


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

Revision as of 20:34, 25 June 2008

Creates a bullet impact particle effect.

Syntax

bool fxAddBulletImpact ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [int smokeSize=1, int sparkCount=1, float smokeIntensity=1.0] )

Required Arguments

  • posX, posY, posZ: the world coordinates where the effect originates.
  • dirX, dirY, dirZ: a vector indicating the direction of the effect.

Optional Arguments

  • smokeSize: the size of the smoke cloud.
  • sparkCount: the number of sparks to create.
  • smokeIntensity: the amount/transparency of smoke, ranges from 0 to 1.

See Also