setShotParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 17: | Line 17: | ||
|x1= <code>myProjectile [[setShotParents]] [<nowiki/>[[vehicle]] bob, bob];</code> | |x1= <code>myProjectile [[setShotParents]] [<nowiki/>[[vehicle]] bob, bob];</code> | ||
|x2= <code>tank [[addEventHandler]] ["Fired", {_this [[select]] 6 [[setShotParents]] [tank, [[commander]] tank]}];</code> | |x2= <code>tank [[addEventHandler]] ["Fired", {_this [[select]] 6 [[setShotParents]] [tank, [[commander]] tank]}];</code> | ||
| [[getShotParents]] | |seealso= [[getShotParents]] | ||
}} | }} | ||
Revision as of 01:07, 17 February 2021
Description
- Description:
- Description needed
- Groups:
- Weapons
Syntax
- Syntax:
- Syntax needed
- Parameters:
- projectile: Object - the actual projectile shot
- [vehicle, instigator]: Array
- vehicle: Object - Vehicle shooting projectile
- instigator: Object - Person pulling the trigger
- Return Value:
- Return value needed
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