BTMux AI
From BattletechMUX
Creating an AI
The easist way to create an AI is to first
@create an object that will become the AI.
@create Autopilot
Next set it as an autopilot by setting the
XTYPE attribute to AUTOPILOT.
@xtype Autopilot=AUTOPILOT
Now you need to set the XCODE flag which will activate all the code that makes the AI an AI.
@set Autopilot=XCODE
Now your AI is a true AI, but in order for it to be useful it must have a unit to drive. Create a unit for it to drive (instructions here) and create a map for the unit (instructions here). Place the unit on the map, and place the AI inside the unit and you are set.
Control an AI
There are two ways of controlling an AI. The most common method and most likely for players is via the radio command system (AI Radio . The other method which is more useful for admins is via the XCODE interface system.

