FxAddWood: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 17: Line 17:
*'''count:''' the number of splinters to create.
*'''count:''' the number of splinters to create.
*'''brightness:''' the brightness. Ranges from 0 (black) to 1 (normal color).
*'''brightness:''' the brightness. Ranges from 0 (black) to 1 (normal color).
===Returns===
Returns a true if the operation was successful, false otherwise.
==Example==
This page lacks an example
<syntaxhighlight lang="lua">
--add an example here
</syntaxhighlight>


==See Also==
==See Also==
{{Client Effects functions}}
{{Client Effects functions}}
[[Category:Needs_Example]]

Revision as of 12:03, 25 May 2012

Wood

Creates a wood splinter particle effect.

Syntax

bool fxAddWood ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [int count=1, float brightness=1.0] )

Required Arguments

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

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.

  • count: the number of splinters to create.
  • brightness: the brightness. Ranges from 0 (black) to 1 (normal color).

Returns

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

Example

This page lacks an example

--add an example here

See Also