Description
Sets vehicle and instigator pair for the given projectile.
Syntax
projectile setShotParents [vehicle, instigator]
Parameters:
projectile: Object - the actual projectile shotvehicle: Object - vehicle shooting projectile (appears as the 'killer' in "Killed" EH)instigator: Object - person pulling the trigger (appears as the 'instigator' in "Killed" EH)
Returns: Nothing
Examples
Example 1
myProjectile setShotParents [vehicle bob, bob];
Example 2
tank addEventHandler ["Fired", {_this select 6 setShotParents [tank, commander tank]}];