• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Any NPC AI system?

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,581
- 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