• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Cleaning MUI variables up (?)

Status
Not open for further replies.
I have MUI variables, e.g.:

Set MUI = (MUI + 1)
Set Caster [MUI] = (Casting unit)
Set Point [MUI] = (Position of Caster [MUI])
Set Group [MUI] = (Units within 300.00 of (Point [MUI]))

-> How to clean those up? <-

Custom script: call RemoveLocation (udg_Point[?])
Custom script: call DestroyGroup (udg_Group[?])
Custom script: set udg_Caster[?] = null

How to detect the number of the array to clean it up? :hohum:

Rep will of course given, thank you in advance.
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
You need to loop:
  • For each integer A from 1 to MUI do actions
    • - If *some condition* equalt to *some value*
      • - Custom script: call RemoveLocation (udg_Point[GetForLoop(IntegerA())])
      • - Custom script: call DestroyGroup (udg_Group[GetForLoop(IntegerA())])
      • - Custom script: set udg_Caster[GetForLoop(IntegerA())] = null
Should be something like that, maybe i mistyped.
Anyway i wrote a nice tutorial covering the subject about making MUI spells, it's link is the last one in my signature.
 
Status
Not open for further replies.
Top