• 🏆 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!

doesn't work anymore

Status
Not open for further replies.
Level 9
Joined
Feb 20, 2014
Messages
409
Hi,
I use this trigger since one year (creating rpg map) and today the creeps don't respawn anymore.
The trigger is still the same,it works since one year,including yesterday.
I don't what's wrong.

  • Events
    • Map initialization
  • Groupe unit - Pick every unit in (Units in (Playable map area)) and do (Actions)
    • Boucle - Actions
      • Set TempInt = (TempInt + 1)
      • Custom script: set udg_CreepX[udg_TempInt] = GetUnitX(GetEnumUnit())
      • Custom script: set udg_CreepY[udg_TempInt] = GetUnitY(GetEnumUnit())
      • Unité - Set the custom value of (Picked unit) to TempInt
  • Events
    • Unit - A unit owned by Neutre Hostile Meurt
  • Actions
    • Custom script: local integer id = GetUnitTypeId(GetTriggerUnit())
    • Custom script: local integer i = GetUnitUserData(GetTriggerUnit())
    • Custom script: local real x = udg_CreepX[i]
    • Custom script: local real y = udg_CreepY[i]
    • Wait 10.00 seconds
    • Custom script: call SetUnitUserData(CreateUnit(GetTriggerPlayer(), id, x, y, 0.), i)
 
Status
Not open for further replies.
Top