| 03-04-2006, 07:31 PM | #1 |
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. |
| 03-05-2006, 10:24 AM | #2 |
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. |
