{"name":"triggerAmmo","title":"triggerAmmo","type":"command","url":"https://community.bistudio.com/wiki/triggerAmmo","revid":377211,"updated":"2026-01-01T11:53:01Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.92"},"since":"arma3 1.92","arma3_since":"1.92","locality":{"argument":"local"},"description":"Triggers a munition such as shells, bullets, missiles, rockets, mines and bombs (*shotSubmunition/shotShell/shotBullet/shotMissile/shotRocket*) as if it did hit.\nIf ammo uses submunition, then creation of submunition will be triggered. Since Arma 3 v 2.22 it is possible to manipulate mine timer, cook grenades and alter missile trigger distance.","syntaxes":[{"syntax":"triggerAmmo munition","params":[{"name":"munition","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"munition"}},{"syntax":"triggerAmmo [munition, timeLeft, distanceLeft]","since":"arma3 2.22","params":[{"name":"munition","type":"Object","description":"ammo. If 'timeLeft' and 'distanceLeft' are not provided, the action is identical to the main syntax.","type_expr":"Object"},{"name":"timeLeft","type":"Number","optional":true,"default":"-1 - ignore","description":"'timeToExplosion' (see getShotInfo). Can only be set to <= relevant config value.","type_expr":"Number","text":"timeLeft: Number - (Optional) 'timeToExplosion' (see getShotInfo). Can only be set to <= relevant config value. Default: -1 - ignore."},{"name":"distanceLeft","type":"Number","optional":true,"default":"-1 - ignore","description":"'fuseDistanceLeft' (see getShotInfo). Can only be set to <= relevant config value.","type_expr":"Number","text":"distanceLeft: Number - (Optional) 'fuseDistanceLeft' (see getShotInfo). Can only be set to <= relevant config value. Default: -1 - ignore."}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[munition, timeLeft, distanceLeft]"}}],"examples":[{"code":["triggerAmmo bomb1;"]},{"code":["player addEventHandler [\"FiredMan\", {triggerAmmo [_this select 6, 1]}]; // explodes handgrenade or sets smoke on smokegrenade 1 sec after the throw."]}],"see_also":["getShotParents","Arma 3: Event Handlers"]}