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

Creep Respawn

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
605
If anyone could share their creep respawn triggers or help me create one it would be great. Cant get any available to work properly.

Need player 10, 12, Neutral Hostile and Neutral Passive units to respawn 40 seconds after being killed. Not Heroes. They should respawn at the location they are at when the map starts and should face the same direction as they do when the map starts.

Using normal world editor so need it in GUI or Jass.

Would really appreciate any help on this, +rep and credits ofcourse, thx!

EDIT: Ok, so this worked with custom script but since i dont have any knowledge of it i need help to make it work with Player 10, 12, neutral hostile and neutral passive, now its only neutral hostile. Also add in so their facing is correct, now they all just spawn with 270 facing and not the facing they had when map starts. Could anyone help me with these issues?

  • Creep Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Custom value of (Triggering unit)) Greater than 0
          • (Owner of (Triggering unit)) Equal to Neutral Hostile
    • Actions
      • Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
      • Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
      • Wait Real_CreepRespawnTime game-time seconds
      • Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Point_Creeps[ii]),GetLocationY(udg_Point_Creeps[ii]),270),ii)
 
Last edited:
Status
Not open for further replies.
Top