Jump to content
Sign in to follow this  
pizzaboy150

Whats wrong with this

Recommended Posts

Hey guys baffle by this one explanation would help as to why it displays an error?

//height display script

_unit = _this select 0;

_b = 2000;

_string = "";

while {_b > 10} do

{

_b = getPosATL _unit select 2;

_string = format["Altitude - %1", _b];

hint _string;

//sleep 0.2;

};

Thanks

Share this post


Link to post
Share on other sites

I just tried it in a game logic and it worked, maybe it's how your calling it.

This is how I tested it, I enabled the sleep to avoid it running too fast.

null=[heli] spawn {  _unit = _this select 0;    _b = 2000;  _string = "";    while {_b > 10} do  {  _b = getPosATL _unit select 2;  _string = format["Altitude - %1", _b];  hint _string;  sleep 0.2;  };};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×