{"name":"getShotParents","operator":null,"title":"getShotParents","type":"command","url":"https://community.bistudio.com/wiki/getShotParents","revid":378943,"updated":"2026-08-27T16:27:34Z","groups":["Weapons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns shot information for the given projectile.\nIf shot was fired by a soldier on foot or in FFV position in vehicle, the soldier is returned for the vehicle.","syntaxes":[{"syntax":"getShotParents projectile","since":null,"effect":null,"exec":null,"params":[{"name":"projectile","type":"Object","optional":false,"default":null,"description":"the actual projectile shot","types":["Object"],"since":null,"text":"projectile: Object - the actual projectile shot"}],"returns":{"type":"Array","types":["Array"],"description":"[vehicle, instigator] - Where vehicle is the vehicle the shot was fired from, and the instigator is the person who pulled the trigger","text":"Array - [vehicle, instigator] - Where vehicle is the vehicle the shot was fired from, and the instigator is the person who pulled the trigger"},"form":"unary","operator":null,"left":null,"right":{"text":"projectile","types":["Object"]}}],"examples":[{"text":"```sqf\n_shotParents = getShotParents myProjectile;\n```","code":["_shotParents = getShotParents myProjectile;"]},{"text":"```sqf\nbatmobile addEventHandler [\"Fired\", { systemChat str getShotParents (_this select 6) }];\n```","code":["batmobile addEventHandler [\"Fired\", { systemChat str getShotParents (_this select 6) }];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setShotParents"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Weapons","Introduced with Arma 3 version 1.62","Scripting Commands"]}