I am having problems running a if..then..else statement. I have placed these statements in the init line of the veh1.
The statement below is what I currently am using.
if ((player distance veh1) < 2) then {hint "Get in vehicle"} else {hint "Goto vehicle"};
I am successful in getting the else portion to work. "Goto Vehicle" appears on screen at mission start. But as I decrease my distance to the veh1 to the point I am leaning on the vehicle, the "Get in vehicle" statement doesn't activate. I have also tried the following:
_dist = player distance veh1;
if (_dist < 2) then {hint "Get in Vehicle"} else {hint "Goto vehicle"};
But again no luck.
I am sure it is a simple error on my part, but I am struggling.
TIA