SRL Archive - OSR Help

RadialWalkTolerance Error


VastlySuperior

2012-08-06 16:36:39

Hi

I need some help here. I`m trying my hand at radialwalk as sps walking sucks a bit where I want to use it, But when I try to compile the code I get this error.

[Error] C:\Simba\Scripts\Crafting.simba(534:47): Invalid number of parameters at line 533
Compiling failed.

I know what the error means, but I do specify all the requirements for this function to work. I just don`t know what I`m doing wrong?

Here is the code

RadialWalkTolerance(4347997,50.0,65.0,1,1,4);
Colour : 4347997
Start Radial :50
End Radial:65
xmod: 1
ymod: 1
Tol: 4

What gives?

Thanks for the help.

Etrnl Fear

2012-08-06 16:43:01

You are missing the radius (r)


RadialWalkTolerance(4347997,50.0,65.0,RadiusHere,1,1,4);
Colour : 4347997
Start Radial :50
End Radial:65
Radius: ??
xmod: 1
ymod: 1
Tol: 4

Make sure it's no more than 74, as this is the edge of the minimap. ;)

VastlySuperior

2012-08-06 16:58:20

Thanks. Knew it was something stupid.

Etrnl Fear

2012-08-06 16:59:51

Haha, it's typical. :P

Good luck with the rest of your script.