• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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?
 
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.
 
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.
Back
Top