vehicle – Talk

From Bohemia Interactive Community
Revision as of 17:55, 16 February 2014 by Master85 (talk | contribs) (comment regarding note)
Jump to navigation Jump to search

A note was added to the effect that the given example did not work with ArmA2. This is not true it works perfectly well, but of course as it uses '?' it must be used in a script and not in init lines or trigger activation lines. The note was removed and clarification of the example added.

Planck 13:50, 6 November 2009 (CET)



As of Arma 3, ( vehicle unit == unit ) is TRUE for units in the vehicle's Driver seat, IF vehicle not named manually in Editor. Example 2 will return TRUE if vehicle pre-named in Editor; Example 2 will return FALSE if vehicle not pre-named, and player in Driver seat

note by Strangepete February 16, 2014

That's not correct, only the string representation is the same, i.e. ( str vehicle unit == str unit ). The object handles are different when the unit is in a vehicle.
--Master85 (talk) 16:55, 16 February 2014 (CET)