setShotParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
|arma3 |= Game | |arma3 |= Game | ||
|1.66|Game Version= | |1.66|Game Version= | ||
Line 8: | Line 7: | ||
|gr1= Weapons |GROUP1= | |gr1= Weapons |GROUP1= | ||
| Sets vehicle and instigator pair for the given projectile. |DESCRIPTION= | | Sets vehicle and instigator pair for the given projectile. |DESCRIPTION= | ||
| projectile [[setShotParents]] [vehicle, instigator] |SYNTAX= | | projectile [[setShotParents]] [vehicle, instigator] |SYNTAX= | ||
|p1= projectile: [[Object]] - the actual projectile shot |PARAMETER1= | |p1= projectile: [[Object]] - the actual projectile shot |PARAMETER1= |
Revision as of 03:44, 17 January 2021
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, instigator]: Array
- vehicle: Object - Vehicle shooting projectile
- instigator: Object - Person pulling the trigger
- Return Value:
- Nothing
Examples
- Example 1:
myProjectile setShotParents [vehicle bob, bob];
- Example 2:
tank addEventHandler ["Fired", {_this select 6 setShotParents [tank, commander tank]}];
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