FxAddGunshot

From Multi Theft Auto: Wiki
Revision as of 20:04, 25 June 2008 by Talidan (talk | contribs) (New page: __NOTOC__ {{Client function}} This function creates a gunshot particle effect. ==Syntax== <syntaxhighlight lang="lua"> bool fxAddGunshot ( float posX, float posY, float posZ, float dirX, float dirY, f...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function creates a gunshot particle effect.

Syntax

bool fxAddGunshot ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [bool includeSparks=true] )

Required Arguments

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

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.

  • includeSparks: A bool representing whether the particle effect will generate sparks.

Returns

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

Example

This page lacks an example

--add an example here

See Also