I'm trying to get a trigger to fire when the player locates friendly troops on the second floor of a bombed out building. To do this I've placed an ammo crate on the second floor and am comparing the crates z co-ordinate to the player's z co-ordinate.
(GetPos aP) select 2 >= (GetPos crate) select 2
The problem is that the player's z co-ordinate remains the same whether he's on the ground or on the second floor. Stranger yet, even though I put the ammo crate on the second floor with;
this setPos [getPos this select 0, getPos this select 1, (getPos this select 2)+ 5]
the crate's z co-ordinate is a miniscule negative number.
Attached is a mini mission where radio alpha displays the player's z co-ordinate and radio bravo displays the crate's. Apparently I'm barking up an empty tree and would really appreciate someone pointing me the right direction.
Thanks guys.