{"name":"setShotParents","title":"setShotParents","type":"command","url":"https://community.bistudio.com/wiki/setShotParents","revid":349182,"updated":"2023-11-08T14:50:39Z","groups":["Weapons"],"status":"ok","games":{"arma3":"1.66"},"since":"arma3 1.66","arma3_since":"1.66","locality":{"argument":"global","effect":"global","server_exec":true},"description":"Sets vehicle and instigator pair for the given projectile.","syntaxes":[{"syntax":"projectile setShotParents [vehicle, instigator]","params":[{"name":"projectile","type":"Object","description":"the actual projectile shot","type_expr":"Object"},{"name":"vehicle","type":"Object","description":"vehicle shooting projectile (appears as the 'killer' in \"Killed\" EH)","type_expr":"Object"},{"name":"instigator","type":"Object","description":"person pulling the trigger (appears as the 'instigator' in \"Killed\" EH)","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"projectile"},"right":{"text":"[vehicle, instigator]"}}],"examples":[{"code":["myProjectile setShotParents [vehicle bob, bob];"]},{"code":["tank addEventHandler [\"Fired\", {_this select 6 setShotParents [tank, commander tank]}];"]}],"see_also":["getShotParents"]}