natives.ADD EXPLOSION NO SOUND: Difference between revisions
Jump to navigation
Jump to search
ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.ADD_EXPLOSION_NO_SOUND |parameters = Vec3 position, int type |parameter1 = Vec3 position World coordinates where the explosion occurs (x, y, z) |parameter2 = int type Explosion type (0–11) |usage = Create an explosion at a specific world position in Vice City without sound |notes = Explosion type determines the visual and physical effect. This variant suppresses the explosion sound effect. |re...") |
(No difference)
|
Latest revision as of 15:19, 26 November 2025
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.