The weapons system controls the bot's weapon, the pulsar. When firing, it takes about one
second to charge and then sends a pulse of energy toward the target.
Most objects can be destroyed, although some require more hits than others. Exceptions include
rubble (the remains of an already-destroyed object) and the impenetrable outer walls.
If the weapons system is damaged, the pulsar takes longer to charge when firing.
Use the Weapons property of your AI class to access the weapons system.
Example
The following code scans for objects and fires at the closest one.
List<ScannedObject> foundObjects = Scanner.Scan();
if (foundObjects.Count != 0)
{
Weapons.Pulsar.Fire(foundObjects[0].Position);
}
Recommended Topics