From Multi Theft Auto: Wiki
Revision as of 12:21, 25 May 2012 by Mehmet Soedir (talk | contribs) (Example)

Punch impact

Creates a punch impact particle effect (a small dust cloud).


bool fxAddPunchImpact ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ )

Required Arguments

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


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


Click to collapse [-]

This example will create a Punch Impact Effect next to you when typing /pimpact in the Chatbox.

addCommandHandler("pimpact", function()
    local x, y, z = getElementPosition(localPlayer)
    local gz = getGroundPosition(x, y, z)
    fxAddPunchImpact(x, y, gz, 0, 0, 0)

See Also