vehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (Text replacement - " " to " ")
Line 16: Line 16:


| [[Object]]
| [[Object]]
 
 
|x1= SQS <code>? '''vehicle''' [[player]] <nowiki>!=</nowiki> [[player]] : [[hint]] "Player is in a vehicle"</code>
|x1= SQS <code>? '''vehicle''' [[player]] <nowiki>!=</nowiki> [[player]] : [[hint]] "Player is in a vehicle"</code>
|x2= SQF<code>if ([[vehicle]] [[player]] != [[player]]) [[then]] {[[hint]] "Player is in a vehicle"};</code>
|x2= SQF<code>if ([[vehicle]] [[player]] != [[player]]) [[then]] {[[hint]] "Player is in a vehicle"};</code>

Revision as of 20:22, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
unitName: Object
Return Value:
Return value needed

Examples

Example 1:
SQS ? vehicle player != player : hint "Player is in a vehicle"
Example 2:
SQFif (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