HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI Commands

03-04-2006, 07:31 PM#1
moyack
Hello Everybody:

I'm making a map where I control Computer players, I see in the AI Editor of WE the commands options (see dialog screenshot).
I need to know how do they work, how do they behave. I'll aprecciate your help.
Attached Images
File type: jpgdialog1.jpg (37.2 KB)
03-05-2006, 10:24 AM#2
PitzerMike
The commands are a simple stack that can be used to communicate from the map script to the ai script.

In the trigger editor you'll find the action AI - Send Command that takes the target player, the number of your command and a number to send as parameters.

Now with 'Commands Waiting' you can check how many now commands have been received in the AI script, and with 'Last Command' and 'Last Command Data' you can pop a waiting command.

The command numbers are not predefined, you have to give semantics to a number yourself.