vehicle: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Armed[ _]Assault(\|.*)\]\]" to "{{GameCategory|arma1|Scripting Commands}}") |
||
Line 41: | Line 41: | ||
[[Category:Scripting Commands OFP 1.96|VEHICLE]] | [[Category:Scripting Commands OFP 1.96|VEHICLE]] | ||
[[Category:Scripting Commands OFP 1.46|VEHICLE]] | [[Category:Scripting Commands OFP 1.46|VEHICLE]] | ||
{{GameCategory|arma1|Scripting Commands}} | |||
[[Category:Scripting Commands Arma 2|VEHICLE]] | [[Category:Scripting Commands Arma 2|VEHICLE]] | ||
[[Category:Scripting Commands Arma 3|VEHICLE]] | [[Category:Scripting Commands Arma 3|VEHICLE]] |
Revision as of 15:50, 8 January 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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- ArmA: Armed Assault: Scripting Commands
- Scripting Commands Arma 2
- Scripting Commands Arma 3