• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Any NPC AI system?

Status
Not open for further replies.
Level 30
Joined
Feb 18, 2014
Messages
3,623
- run back to their spawn position after they either kill a player or they can't keep up with his speed/he disappears/they move too far from their spawn postion.
Isn't that what computer units do already? Otherwise, you could use a combat check system to detect when a unit is attacked and then start a timer. After the timer expires order the attacked unit to move back to its guard position.
- run away when on low health
There is an option in the AI Editor that lets you do that.
- call nearby NPCs for help
You will need a trigger that picks all units near the NPC and order them to attack.
 
Status
Not open for further replies.
Top