gametechmods

Robot Arena => General Support => Topic started by: Probably Rob on September 01, 2013, 04:35:27 PM

Title: Spin Until Touch (AI Problem)
Post by: Probably Rob on September 01, 2013, 04:35:27 PM
Just when I thought I wouldn't get any sort of AI problem/error again, guess what? I have an AI problem/error again. This one, though, is to do with Helloface's Ping Winz.

    list.append(("Ping Winz","Omni",{'invertible':True,'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(1,5,10,30)}))


Omni and Spinner/DirectionalSpinner don't work.

The weapon won't spin until it touches the opponent. I swear I remember a thread or a post about this problem by someone else, but cannot find it, unless it never existed.

Spin is on a button, no spaces. I know switch won't work, but tried it just in case, no difference.
Title: Re: Spin Until Touch (AI Problem)
Post by: Resetti's Replicas on September 01, 2013, 04:41:24 PM
you need "range":xx.  Range dictates from how far away the bot will spin up its weapon.  Default value is zero, which as you've observed, means it doesn't spin until it's touching the opponent.
Title: Re: Spin Until Touch (AI Problem)
Post by: Probably Rob on September 01, 2013, 04:47:21 PM
I love ya, Resetti. Thank you. *throws envelope at the camera lens*