I'm making my own Ai to use in my maps. I'm in the process of drawing it on paper of everything I want it to do. I was thinking about starting the Ai off the trigger, a unit acquires a target. My questions are is this a good way to trigger it? I plan on having 100s of units using the ai to attack and retreat.
My next question is would I need to have functions for ai ordering units run on their own thread (I think, not near editor to verify)
trigger event does exist if that's what you're asking. & You can always turn chunks of units into unit groups and order them like that instead of all acting individually.
I know it's a trigger. I was referring to the overhead as far as slowing other triggers and the game down. I know sc2 is a lot more stressful than sc1 and wc3 so I want this to run on low end systems pretty well.
So far my ai is coming among but I've ran into a minor hiccup. Im trying to figure out away to find out whats the closest unit to my ai unit thats a ally. I used the closest unit to a point an converted the ai units position to a point an search by radius from where the ai unit is. My problem is it seems the point picks up the ai unit instead of finding allies in a radius. Any idea how to fix or a work around? I need a method to find position of allied units without including itself.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm making my own Ai to use in my maps. I'm in the process of drawing it on paper of everything I want it to do. I was thinking about starting the Ai off the trigger, a unit acquires a target. My questions are is this a good way to trigger it? I plan on having 100s of units using the ai to attack and retreat.
My next question is would I need to have functions for ai ordering units run on their own thread (I think, not near editor to verify)
trigger event does exist if that's what you're asking. & You can always turn chunks of units into unit groups and order them like that instead of all acting individually.
2nd Q, yes.
Example AI here.
I know it's a trigger. I was referring to the overhead as far as slowing other triggers and the game down. I know sc2 is a lot more stressful than sc1 and wc3 so I want this to run on low end systems pretty well.
So far my ai is coming among but I've ran into a minor hiccup. Im trying to figure out away to find out whats the closest unit to my ai unit thats a ally. I used the closest unit to a point an converted the ai units position to a point an search by radius from where the ai unit is. My problem is it seems the point picks up the ai unit instead of finding allies in a radius. Any idea how to fix or a work around? I need a method to find position of allied units without including itself.