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

Clearing point with index leak

Status
Not open for further replies.
Level 12
Joined
Mar 24, 2011
Messages
1,082
Its simple evry 1 sec I place point to the possition of a unit. Then with a chat string the player can order all his units to atack-move to it.
The problem is with clearing the point leak.

I tried this:
  • Atack Point
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: call RemoveLocation(udg_Atack Point[1])
      • Set AtackPoint[1] = (Position of EYE OF EVIL 0165 <gen>)
and this :
  • Atack Point
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set AtackPoint[1] = (Position of EYE OF EVIL 0165 <gen>)
      • Wait 0.95 seconds
      • Custom script: call RemoveLocation(udg_Atack Point[1])


And now I think (not think 99% sure) that I did something whrong with the custom script. If someone could show me how it would look like ?
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
With the first it dissables the trigger saying Line 111 Expected a name
And dissables another trigger which uses Atack point 1 saying Line 945 Expected a name

With the яеъдха it dissables the trigger saying Line 113 Expected a name
And dissables another trigger which uses Atack point 1 saying Line 945 Expected a name

So...
 
Status
Not open for further replies.
Top