vehicle – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
(comment regarding note)
Line 4: Line 4:


[[User:Planck|Planck]] 13:50, 6 November 2009 (CET)
[[User:Planck|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 [[User:Strangepete|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.
:--[[User:Master85|Master85]] ([[User talk:Master85|talk]]) 16:55, 16 February 2014 (CET)

Revision as of 17:55, 16 February 2014

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)