HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Fixing This Leak

05-02-2008, 09:42 PM#1
Black-Templar
I want to show floating text to only one player, so I use
Trigger:
Floating Text - Show (Last created floating text) for (Player group((Owner of (Killing unit))))
This makes a memory leak, if I recall, so I would use
Collapse JASS:
 call DestroyForce(udg_VARIABLE)
to remove it, but I didn't set a variable, the game creates one for the Convert to Player Group trigger, so what do I put in for the "VARIABLE?"

Oh ya, I'm a GUI guy. JASS is mostly Greek to me.
05-03-2008, 02:28 AM#2
Vexorian
Quote:
the game creates one for the Convert to Player Group trigger
It doesn't.

Just do

set variable = player group of (owner of killing unit)
show (last created floating text) for variable
call DestroyForce(udg_variable)

Quote:
Oh ya, I'm a GUI guy. JASS is mostly Greek to me.
Let me be skeptical about that, since you actually used Jass in the thread.