setShotParents: Difference between revisions
| m (Text replacement - "<!-- Appropriate categories go here -->" to "") | Lou Montana (talk | contribs)  m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") | ||
| (19 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{RV|type=command | ||
| | | |game1= arma3 | ||
| |version1= 1.66 | |||
| |  | |arg=global | ||
| | | |||
| | | |eff=global | ||
| |serverExec= server | |||
| |gr1= Weapons | |||
| |descr= Sets vehicle and instigator pair for the given projectile. | |||
| |s1= projectile [[setShotParents]] [vehicle, instigator] | |||
| |p1= projectile: [[Object]] - the actual projectile shot | |||
| |p2= vehicle: [[Object]] - vehicle shooting projectile (appears as the 'killer' in "Killed" EH) | |||
| |p3= instigator: [[Object]] - person pulling the trigger (appears as the 'instigator' in "Killed" EH) | |||
| |r1= [[Nothing]] | |||
| < | |x1= <sqf>myProjectile setShotParents [vehicle bob, bob];</sqf> | ||
| |x2= <sqf>tank addEventHandler ["Fired", {_this select 6 setShotParents [tank, commander tank]}];</sqf> | |||
| |seealso= [[getShotParents]] | |||
| [[ | }} | ||
Latest revision as of 15:50, 8 November 2023
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 or on the Forums.
 Only post proven facts here! Add Note
 
	