• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Creep Respawn

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
594
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