TaskWanderInArea problem

Hi,

i’ve been working on a hunting script where I want my animals to stay within a certain radius, now they just walk off into the sunset and never to be seen. When I tried the TaskWanderInArea native they all converge to one point, the center, even though the Radius is defined. Anyone able to help with this ?

TaskWanderInArea(obj, Config.CircleZones.HuntingGround.coords.x, Config.CircleZones.HuntingGround.coords.y, Config.CircleZones.HuntingGround.coords.z, 1000, 500, 25000)

Also tried this:

TaskWanderInArea(obj, Config.CircleZones.HuntingGround.coords.x, Config.CircleZones.HuntingGround.coords.y, Config.CircleZones.HuntingGround.coords.z, Config.CircleZones.HuntingGround.coords.radius, 500, 25000)

Hi,all params should be set as floats not integer.

TaskWanderInArea(obj, Config.CircleZones.HuntingGround.coords.x, Config.CircleZones.HuntingGround.coords.y, Config.CircleZones.HuntingGround.coords.z, Config.CircleZones.HuntingGround.coords.radius, 500. 0, 25000. 0)

Hmm… that made them not move at all… So there must be something else wrong I think?
No errors also … I’m pretty damm new to coding LUA so i’ll look into it to see how to fix.

If you can, share your client script the issue is maybe somewhere else.

Or

TaskWanderInArea(obj, Config.CircleZones.HuntingGround.coords.x+. 0, Config.CircleZones.HuntingGround.coords.y+.0, Config.CircleZones.HuntingGround.coords.z+.0, Config.CircleZones.HuntingGround.coords.radius+.0, 500.0, 25000.0)