vehicle – Talk
saw the edit...after the fact i realized i should have put this in discussion first or asked....my mistake (tad carried away that we can finally help to improve the wiki). The confusion came from the fact that when you're in the driver seat, (vehicle player) appears to return the exact same object as player. so how can this return false (which is infact the current result, again my mistake) when its the same object?
copytoclipboard format ["%1\n%2",(vehicle player),player];
from the driver seat: B Alpha 1-1:1 (dr.strangepete)\nB Alpha 1-1:1 (dr.strangepete)
standing outside: B Alpha 1-1:1 (dr.strangepete)\nB Alpha 1-1:1 (dr.strangepete)
from passenger seat: 3a050100# 163953: offroad_01_unarmed_f.p3d\nB Alpha 1-1:1 (dr.strangepete)
-- the string-string comparison is in fact true...so only the object comparison is false if i'm understanding correctly? but the expected output should be what the passenger seat shows. (i'm not arguing whether or not its a bug, im assuming this is a design)
so is there some way to cleanly explain this in the wiki entry for others? thanks for your patience --Strangepete (talk) 17:32, 16 February 2014 (CET)
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)