HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

DestroyEffect delay

07-01-2009, 11:47 PM#1
RolePlaynGamer
I've created this full screen inventory with the hero displaying in a window in the top right corner of the screen. The hero is a normal unit with locust that's playing an animation that makes him lay down like you can see on the screenshot.
Whenever the player equips an item I create an effect and attach it to the unit. Later, when the player unequips the item, I remove the effect by using the DestroyEffect native. My problem is, that there's approximately a 2 second delay before the effect gets removed.

Does anyone know what is causing the delay so that I can fix it?

Hidden information:
07-03-2009, 08:53 AM#2
Patpup
Its a problem every effect without death-animation has.
You could change the decay-time for effects in the gameplay constants, its set to 5 seconds on default. You have to be carefull as this affects all effects in your map of course. I don't know if death-animations are still played if decaytime is set to 0, so you could just set it to 1.5 seconds or something and have one general effect (with death animation) created and instantly destroyed to make it look as if the first model had some death-animation after all. Just a thought.

In case you are using custom models for the effects, adding a death animation to them would be the best solution of course!


Btw, nice inventory!