vehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3") |
||
Line 26: | Line 26: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Vehicle in which given unit is mounted. If none, unit is returned. Alternatively, use [[objectParent]] | |descr= Vehicle in which given unit is mounted. If none, unit is returned. Alternatively, use [[objectParent]] | ||
|s1= '''vehicle''' unitName | |s1= '''vehicle''' unitName |
Revision as of 21:26, 13 June 2021
Description
- Description:
- Vehicle in which given unit is mounted. If none, unit is returned. Alternatively, use objectParent
- Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
- SQS
? vehicle player != player : hint "Player is in a vehicle"
- Example 2:
- SQF
if (vehicle player != player) then {hint "Player is in a vehicle"};
Additional Information
- See also:
- objectParent
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