Game Development Community

New bots firing?

by Sabrecyd · in Torque Game Engine · 10/09/2002 (6:20 am) · 0 replies

Does anyone know how to make bots fire using the new aiplayer code? This used to work
%this.setTrigger(0,true);
Now it generates an error saying that setTrigger is an unknown command.

Looks like using the WeaponImage::onFire function can work. Maybe someone has a different way that works too.

Edit2: For those interested the command to make bots fire the current weapon is:
setImageTrigger(0,true);
This makes the bot fire until the trigger is set to false - very cool!