setShotParents: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Killzone Kid (talk | contribs) No edit summary |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 18: | Line 18: | ||
|p1= projectile: [[Object]] - The actual projectile shot | |p1= projectile: [[Object]] - The actual projectile shot | ||
|p2= vehicle: [[Object]] - Vehicle shooting projectile | |p2= vehicle: [[Object]] - Vehicle shooting projectile (appears as the 'killer' in "Killed" EH) | ||
|p3= instigator: [[Object]] - Person pulling the trigger | |p3= instigator: [[Object]] - Person pulling the trigger (appears as the 'instigator' in "Killed" EH) | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>myProjectile setShotParents [vehicle bob, bob];</sqf> | ||
|x2= < | |x2= <sqf>tank addEventHandler ["Fired", {_this select 6 setShotParents [tank, commander tank]}];</sqf> | ||
|seealso= [[getShotParents]] | |seealso= [[getShotParents]] | ||
}} | }} | ||
Revision as of 10:10, 24 July 2022
Description
- Description:
- Sets vehicle and instigator pair for the given projectile.
- Groups:
- Weapons
Syntax
- Syntax:
- projectile setShotParents [vehicle, instigator]
- Parameters:
- projectile: Object - The actual projectile shot
- vehicle: Object - Vehicle shooting projectile (appears as the 'killer' in "Killed" EH)
- instigator: Object - Person pulling the trigger (appears as the 'instigator' in "Killed" EH)
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- getShotParents
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note