Log in

View Full Version : Radial Road Walk



XcanadamanX
01-06-2007, 06:58 PM
Im trying to use Radial Road walk for my new script i am making but i keep getting this in my debug
THROUGH MINIMAP!!!!!!!!---> 0
THROUGH RADIALROADWALK= ---> 0
THROUGH MINIMAP!!!!!!!!---> 0
THROUGH RADIALROADWALK= ---> 0
THROUGH MINIMAP!!!!!!!!---> 0
THROUGH RADIALROADWALK= ---> 0

what does this mean? this is my procedure im using it in.
Procedure ToBank;
var RoadColor:integer;
Begin
RadialWalk( 5074323, 300, 400, 65, 1, 1 )
Flag;
RoadColor:=FindMMRoadColor;
RadialRoadWalk( RoadColor, 280, 370, 75, 2, 2 )
Flag;
RadialRoadWalk( RoadColor, 0, 90, 70, 2, 2 )
Flag;
RoadColor:=FindMMRoadColor;
RadialRoadWalk( RoadColor, 50, 100, 70, 2, 2 )
Flag;
End;

what am i doing wrong? this is my first attempt at using radial road walk.

Yakman
01-06-2007, 08:32 PM
first, RadialRoadWalk updates the RoadColor as it walks, so remove the FindMMRoadColor

also, RadialRoadWalk also has a procedure for waiting for the flag, so the Flag; is not needed

also, declare a variable roadcolor in that procedure, SRL already declares a global RoadColor

a good thing to look at with RadialRoadWalk is a script in includes\SRL\Scripts\Radial Walking Aid.scar, its very useful

XcanadamanX
01-06-2007, 08:43 PM
i have been using the radial walking aid. it does help a ton. thanks for that. ya looks like that fixed it thanks!

XcanadamanX
01-07-2007, 04:53 PM
yakman. this is my new problem. im trying to get the char to walk from one road color(fally) to a normal road color. ive tried multiple things and it keeps wanting to go to the fally roadcolor. how would i do this?

xxlegitxx
01-07-2007, 08:45 PM
Use DTM's? Or maybe GetNewRoadColor? Or LinearRoadwalk?

LordGregGreg
06-07-2007, 04:44 PM
walk from one road color(fally) to a normal road color.
You will not be able to use radial road walk in that instance because It auto updates the road color, setting it back to the one you don't want.

You will have to take over manually at that point, and reset the road color.
[i used a bitmap autocolor procedure to set it to the new raod color], then mabey a ddtm to walk it away from the old road color.

At that point radialroadwalk should work again, as long as the old road color is no longer on the Minimap.

XcanadamanX
06-07-2007, 09:07 PM
thanks but you are kinda gravedigging