| 08-12-2009, 03:35 PM | #1 |
I've seen that .ai scripts use Player() but I haven't seen it declared on the common.ai native list. So does that mean its valid to use common.j natives on .ai scripts? |
| 08-12-2009, 03:50 PM | #2 | |
Quote:
And yes Blizzard haven't made a list. |
| 08-12-2009, 03:58 PM | #3 |
I thought you could use common.j, but not blizzard.j. Not sure though. |
| 08-12-2009, 03:58 PM | #4 |
You can use almost all the common.j natives in ai scripts, there're some of them which doens't work, like the groupenum, forgroup (if I remember properly). Constant natives, or natives which deal with constant handles are safe in general. But you can: create units, effects, use gamecache and other things. But you should test all of them because carefully because in some cases it crash the game. |
| 08-12-2009, 04:04 PM | #5 |
Okay, thanks guys, I just wanted to know to what extent common.j natives can function on .ai scripts, I was trying to make a simple ai for a test map but I didn't like the AI editor, it's hard to make conditions. |
