ironfist19
New Member
- Reaction score
- 3
Hello, I am making a creature roaming system for my map but I am having a problem with the attacking.
I currently got this trigger for the roaming and having a problem with the attacking when the creature got a threat.
The creatures of Neutral Hostile roams around... but the if/then/else action doesn't work... when a unit is near them at 250 range. they don't attack them they still roam around.. any help?
I currently got this trigger for the roaming and having a problem with the attacking when the creature got a threat.
Trigger:
- Roaming System
- Events
- Time - Every 1.35 seconds of game time
- Conditions
- Actions
- Set CreepsAllGroup = (Units in (Playable map area) owned by Neutral Hostile)
- Unit Group - Pick every unit in CreepsAllGroup and do (Actions)
- Loop - Actions
- Set CreepRRP = ((Position of (Picked unit)) offset by 80.00 towards (Random angle) degrees)
- Unit Group - Order CreepsAllGroup to Move To CreepRRP
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Is (Picked unit) near (Get detected unit) and withing a range of 250.00) Equal to True
- Then - Actions
- Unit Group - Order CreepsAllGroup to Attack (Get detected unit)
- Else - Actions
- If - Conditions
- Loop - Actions
- Events
The creatures of Neutral Hostile roams around... but the if/then/else action doesn't work... when a unit is near them at 250 range. they don't attack them they still roam around.. any help?