gametechmods

Robot Arena => General Support => Topic started by: Silverfish on September 09, 2015, 04:06:55 PM

Title: Having Issues With AI
Post by: Silverfish on September 09, 2015, 04:06:55 PM
Sometimes, when i try to ai a spinner, when it gets near, the weapons don't trigger. I've used both omni and spinner, but neither seems to work. this is in DSL3 beta, and ocasionally stock. any ideas?
Title: Re: Having Issues With AI
Post by: G.K. on September 09, 2015, 04:07:53 PM
Can you post up an example of your AI binding lines?
Title: Re: Having Issues With AI
Post by: Silverfish on September 09, 2015, 04:15:16 PM
I'm trying to make some ai for DSL3:

list.append( ("Lock On", "Omni", { 'radius':1.5, 'turnspeed' : 1.0, 'topspeed' : 12.0, 'throttle' : 120 }) )

(that's the main one that's giving trouble)

I've named the controls right, I've checked this a lot.
Title: Re: Having Issues With AI
Post by: cephalopod on September 09, 2015, 04:27:31 PM
You've got no 'weapons' : 0 or whatever in there - if the ai tells the bot it has no weapons, it won't use any ;)
For hardcore mode you can try and find out the component id number for each weapon, or easy mode just put 0 - 0 registers as the chassis so the bot will always try to use the weapon.
Title: Re: Having Issues With AI
Post by: Silverfish on September 09, 2015, 04:36:24 PM
Thanks for the help! It worked! :bigsmile: