Laimonas171
2012-10-28 18:31:49
Though easy function but I found it useful, if you are not sure where your object is exactly, if here is something like that please inform me about that in posts :)
{*
Author: laimonas171, Nebula (Troubleshooted it a bit)
Description: Changes to random compass possition N, W, E, S...
Example: MakeCompassRnd; // Changes to random compass possition
Note: In most cases it should be useful at search object on mainscreen, etc as example:
repeat
MakeCompassRnd;
FindMyObject; // search for any object you want...
until(FindMyObject) // timeMarkUp would be useful as failsafe.
*}
procedure MakeCompassRnd;
begin
MakeCompass(Random(3) * 90);
end;
end;