• 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.

[Trigger] "Monster Return"

Status
Not open for further replies.
Level 5
Joined
Nov 11, 2009
Messages
172
I'm currently working on a rpg, and I was wondering how to make it so that when creeps lose interest in you and run back to thier spawn point, they turn invurnable and get fully healed, then turn vurnable again when they reach thier destination?
 
Level 9
Joined
Feb 3, 2006
Messages
326
You could probably set a region for each creep..

CREEP LEAVES REGION
Set the trigger so that when (UNIT) leaves that specific region, After XX amount of time, return back to REGION.

CREEP ENTERS REGION
WHen it re-enters, a trigger will run which will say If UNIT's health is below 100% set UNIT's health to 100%.

Its very easy to do, set variables to units and so forth. but time consuming.
 
Level 5
Joined
Nov 11, 2009
Messages
172
You could probably set a region for each creep..

CREEP LEAVES REGION
Set the trigger so that when (UNIT) leaves that specific region, After XX amount of time, return back to REGION.

CREEP ENTERS REGION
WHen it re-enters, a trigger will run which will say If UNIT's health is below 100% set UNIT's health to 100%.

Its very easy to do, set variables to units and so forth. but time consuming.

I already made a system checking every units x and y then used distance between points which solved it. Thanks for answer anyway
 
Status
Not open for further replies.
Top