From RAGE Multiplayer Wiki
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
Example
let playerPos = mp.players.local.position;
// Creates a grenade explosion infront of the player.
mp.game.fire.addExplosion(playerPos.x + 3, playerPos.y + 3, playerPos.z, 0, 0, true, false, 0.5);
See also
Template:Fire s function c