HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Floating Text - Leaks ?

12-07-2006, 07:05 PM#1
[VDM]Amn
In my map several Floating Texts are created all over it every 5 seconds.
It may create about 3 or 5 but sometimes 40 or more.

Do i need to create a variable for each Floating Text created in order to destroy it later?
Or there's an easier way?
12-07-2006, 07:42 PM#2
Captain Griffen
Just set them to destroy themselves after 5 seconds.
12-07-2006, 07:52 PM#3
Vexorian
LifeSpan does so
12-07-2006, 08:10 PM#4
[VDM]Amn
roger
12-07-2006, 09:59 PM#5
PandaMine
Every single handle leaks so every single handles has a specified function to remove the handle, i.e. groups have DestroyGroup , locations are RemoveLocation etc
12-08-2006, 11:02 PM#6
blu_da_noob
For TextTags, setting the LifeSpan gets WC3 to clean them up automatically. As soon as you set it the handle index is recycled to be available for others.