Fire::addExplosion: Difference between revisions
No edit summary |
|||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Creates an explosion at given coords. | |||
This function is missing last argument, so you cant create explosion with damage. | |||
__TOC__ | __TOC__ | ||
| Line 10: | Line 12: | ||
*'''z: <font color='green'>float'''</font> | *'''z: <font color='green'>float'''</font> | ||
*'''explosionType: <font color='red'>int'''</font> | *'''explosionType: <font color='red'>int'''</font> | ||
**[[Explosions|Explosion Types]] | |||
*'''damageScale: <font color='green'>float'''</font> | *'''damageScale: <font color='green'>float'''</font> | ||
*'''isAudible: <font color='blue'>Boolean'''</font> (Trigger explosion sound) | *'''isAudible: <font color='blue'>Boolean'''</font> (Trigger explosion sound) | ||
| Line 19: | Line 22: | ||
==Example== | ==Example== | ||
< | |||
{{ClientsideCode| | |||
/ | <pre> | ||
</pre> | |||
}} | |||
==See also== | ==See also== | ||
{{Fire_s_function_c}} | {{Fire_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Latest revision as of 15:26, 2 October 2019
Creates an explosion at given coords. This function is missing last argument, so you cant create explosion with damage.
Syntax
mp.game.fire.addExplosion(x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake);
Required Arguments
- x: float
- y: float
- z: float
- explosionType: int
- damageScale: float
- isAudible: Boolean (Trigger explosion sound)
- isInvisible: Boolean (Trigger visibility)
- cameraShake: float
Return value
- Undefined
Example
Client-Side