Log in

View Full Version : MakeCompass broken?



shnk
12-31-2011, 02:54 AM
Idk im not sure but when i do
Makecompass ('w');
it keeps rotating and doesn't stop

[Nathan]
12-31-2011, 02:58 AM
I am using it in a script that is running now... Try this:
MakeCompass(randomrange(265,275));

shnk
12-31-2011, 03:09 AM
err tried that it keeps rotating

Gushers
12-31-2011, 06:29 AM
Maybe you have it in the wrong part of the script and also make it a W not a w.

P1nky
12-31-2011, 06:30 AM
Post your function, that'll help us to solve your problem mate.

RISK
12-31-2011, 06:31 AM
It wouldn't matter if the "W" was capped or not, Gushers. :)
case LowerCase(Direction) of
'n': DirectionDeg := 0;
'w': DirectionDeg := 270;
's': DirectionDeg := 180;
'e': DirectionDeg := 90;
'random', 'rand': DirectionDeg := RandomRange(0, 360);
end;

The "Lowercase(Direction)" will make sure no matter if the 'W' is capped or not, it will be recognized.