Hi all,
I am wondering if there is a better way to make a sort of "pseudo AI" for my map. Imagine that there are players surviving against computer units, and I want the computer units to simply attack move to the player positions. I know a very basic way of doing it, but am curious if there's a better more seamless way that will feel better in game than the simple way like this:
So basically that's my question, is there a better way of doing this trigger that would have a better "in game feeling"? Or is it just this simple and would just need tweaks. My idea here is to just have a high Acquisition Range on the computer units so that one player if alone wont get randomly swarmed if other players are already in combat or nearby, but I feel like its too basic and could easily be better.
Any help is appreciated!
I am wondering if there is a better way to make a sort of "pseudo AI" for my map. Imagine that there are players surviving against computer units, and I want the computer units to simply attack move to the player positions. I know a very basic way of doing it, but am curious if there's a better more seamless way that will feel better in game than the simple way like this:
-
AttackMove
-
Events
- Time - Every 2.50 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Random 1 units from GladiatorUnitGroup) and do (Actions)
-
Loop - Actions
- Set VariableSet Spawn_TargetUnitPoint = (Position of (Picked unit))
-
Loop - Actions
-
Unit Group - Pick every unit in SpawnedUnitGroup and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of (Playable map area))
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Spawn_TargetUnitPoint)
-
Unit Group - Pick every unit in (Random 1 units from GladiatorUnitGroup) and do (Actions)
-
Events
So basically that's my question, is there a better way of doing this trigger that would have a better "in game feeling"? Or is it just this simple and would just need tweaks. My idea here is to just have a high Acquisition Range on the computer units so that one player if alone wont get randomly swarmed if other players are already in combat or nearby, but I feel like its too basic and could easily be better.
Any help is appreciated!