natives.ADD_EXPLOSION_NO_SOUND
Jump to navigation
Jump to search
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.ADD_EXPLOSION_NO_SOUND(Vec3 position, int type)
The natives.ADD_EXPLOSION_NO_SOUND function is used to Create an explosion at a specific world position in Vice City without sound.
Parameters
| 1) | Vec3 | position | World coordinates where the explosion occurs (x, y, z). |
| 2) | int | type | Explosion type (0–11). |
Return
| void | This function doesn't return a value. |
Notes
- Explosion type determines the visual and physical effect. This variant suppresses the explosion sound effect.
Examples
Example 1 - JavaScript:
addCommandHandler("expnosound", function(cmd, args) {
let type = 0;
if (args && args.length > 0) {
let n = parseInt(args[0]);
if (!isNaN(n)) {
type = n;
}
}
if (type < 0) type = 0;
if (type > 11) type = 11;
natives.ADD_EXPLOSION_NO_SOUND(new Vec3(-592.0, 670.0, 11.0), type);
message("Silent explosion " + type + " at -592.0, 670.0, 11.0");
});
Compatibility
There isn't any compatibility information for this function.