FxAddBulletSplash: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Client function}} This function creates a bullet splash particle effect, normally created when shooting into water. ==Syntax== <syntaxhighlight lang="lua"> bool fxAddBulletSplash ( float p...) |
(add oop syntax) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
[[Image:Fxbulletsplash.png|thumb|200px|Bullet splash]] | |||
This function creates a bullet splash particle effect, normally created when shooting into water. | This function creates a bullet splash particle effect, normally created when shooting into water. | ||
Line 7: | Line 8: | ||
bool fxAddBulletSplash ( float posX, float posY, float posZ ) | bool fxAddBulletSplash ( float posX, float posY, float posZ ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[Effect]].addBulletSplash}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
Line 16: | Line 18: | ||
Returns a true if the operation was successful, false otherwise. | Returns a true if the operation was successful, false otherwise. | ||
==Example== | ===Example=== | ||
This | <section name="Client" class="client" show="true"> | ||
This example will add a Bullet Splash Effect next to your player when typing ''/bsplash'' in the Chatbox. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addCommandHandler("bsplash", function() | |||
local x, y, z = getElementPosition(localPlayer) | |||
local gz = getGroundPosition(x, y, z) | |||
fxAddBulletSplash(x, y, gz) | |||
end) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==See Also== | ==See Also== | ||
{{Client Effects functions}} | {{Client Effects functions}} | ||
Latest revision as of 20:56, 2 January 2015
This function creates a bullet splash particle effect, normally created when shooting into water.
Syntax
bool fxAddBulletSplash ( float posX, float posY, float posZ )
OOP Syntax Help! I don't understand this!
- Method: Effect.addBulletSplash(...)
Required Arguments
- posX: A float representing the x position of the splash
- posY: A float representing the y position of the splash
- posZ: A float representing the z position of the splash
Returns
Returns a true if the operation was successful, false otherwise.
Example
Click to collapse [-]
ClientThis example will add a Bullet Splash Effect next to your player when typing /bsplash in the Chatbox.
addCommandHandler("bsplash", function() local x, y, z = getElementPosition(localPlayer) local gz = getGroundPosition(x, y, z) fxAddBulletSplash(x, y, gz) end)
See Also
- createEffect
- fxAddBlood
- fxAddBulletImpact
- fxAddBulletSplash
- fxAddDebris
- fxAddFootSplash
- fxAddGlass
- fxAddGunshot
- fxAddPunchImpact
- fxAddSparks
- fxAddTankFire
- fxAddTyreBurst
- fxAddWaterHydrant
- fxAddWaterSplash
- fxAddWood
- getEffectDensity
- getEffectSpeed
- setEffectDensity
- setEffectSpeed