{"name":"getShotInfo","operator":null,"title":"getShotInfo","type":"command","url":"https://community.bistudio.com/wiki/getShotInfo","revid":377707,"updated":"2026-01-02T09:03:44Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns various properties for the given shot.","syntaxes":[{"syntax":"getShotInfo shot","since":null,"effect":null,"exec":null,"params":[{"name":"shot","type":"Object","optional":false,"default":null,"description":"shot projectile","types":["Object"],"since":null,"text":"shot: Object - shot projectile"}],"returns":{"type":"Array with [effectiveTimeToLive, fuseDistanceLeft, timeToExplosion, triggerIsForced, shownTracer, isReal, isSubmunitionTriggered, isSetForDeletion, shotParent, shotInstigator]","types":["Array"],"description":"0 - effectiveTimeToLive: Number - how much more shot has to live. - 1 - fuseDistanceLeft: Number - how long shot has to travel more to get fused (undebarrel grenade for example). - 2 - timeToExplosion: Number - how long before shot fuse explodes (hand grenade for example) Arma 3 v2.20 works on mines too. - 3 - triggerIsForced: Boolean - true if shot ammo was triggered with triggerAmmo. - 4 - shownTracer: Boolean - true if the shot shown as tracer. - 5 - isReal: Boolean - true if the shot is considered in damage events. - 6 - isSubmunitionTriggered: Boolean - true if the shot contains submunition and it is triggered. - 7 - isSetForDeletion: Boolean - true if the shot is already set for deletion but not yet removed from the scene. - 8 - Arma 3 v2.22 shotParent: Object - the vehicle that produced shot. - 9 - Arma 3 v2.22 shotInstigator: Object - the person who pulled the trigger.","text":"Array with [effectiveTimeToLive, fuseDistanceLeft, timeToExplosion, triggerIsForced, shownTracer, isReal, isSubmunitionTriggered, isSetForDeletion, shotParent, shotInstigator]\n- 0 - effectiveTimeToLive: Number - how much more shot has to live.\n- 1 - fuseDistanceLeft: Number - how long shot has to travel more to get fused (undebarrel grenade for example).\n- 2 - timeToExplosion: Number - how long before shot fuse explodes (hand grenade for example) Arma 3 v2.20 works on mines too.\n- 3 - triggerIsForced: Boolean - true if shot ammo was triggered with triggerAmmo.\n- 4 - shownTracer: Boolean - true if the shot shown as tracer.\n- 5 - isReal: Boolean - true if the shot is considered in damage events.\n- 6 - isSubmunitionTriggered: Boolean - true if the shot contains submunition and it is triggered.\n- 7 - isSetForDeletion: Boolean - true if the shot is already set for deletion but not yet removed from the scene.\n- 8 - Arma 3 v2.22 shotParent: Object - the vehicle that produced shot.\n- 9 - Arma 3 v2.22 shotInstigator: Object - the person who pulled the trigger."},"form":"unary","operator":null,"left":null,"right":{"text":"shot","types":["Object"]}},{"syntax":"shot getShotInfo index","since":null,"effect":null,"exec":null,"params":[{"name":"shot","type":"Object","optional":false,"default":null,"description":"shot projectile","types":["Object"],"since":null,"text":"shot: Object - shot projectile"},{"name":"index","type":"Number","optional":false,"default":null,"description":"property index (see main syntax, for example 1 for fuseDistanceLeft)","types":["Number"],"since":null,"text":"index: Number - property index (see main syntax, for example 1 for fuseDistanceLeft)"}],"returns":{"type":"Anything","types":["Anything"],"description":"depends on the requested property, or Nothing","text":"Anything - depends on the requested property, or Nothing"},"form":"binary","operator":null,"left":{"text":"shot","types":["Object"]},"right":{"text":"index","types":["Number"]}}],"examples":[{"text":"```sqf\nprivate _shotInfo = getShotInfo shot1;\n```","code":["private _shotInfo = getShotInfo shot1;"]},{"text":"```sqf\nprivate _fuseDistanceLeft = shot1 getShotInfo 1;\n```","code":["private _fuseDistanceLeft = shot1 getShotInfo 1;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getShotParents","missileTarget","triggerAmmo","getObjectType","getObjectTextures","objectParent","setVelocityTransformation","getUnitFreefallInfo","getEntityInfo","getModelInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.18","Scripting Commands"]}