I understand that hashtags can clean up memory leaks so i tried a simple trigger to integrate it however I still am discovering how it works.
So here I tried to play a unit's animation once the skill is used and clear the hashtable once everything is done.
however the animation keeps from looping.
So here I tried to play a unit's animation once the skill is used and clear the hashtable once everything is done.
however the animation keeps from looping.
-
atkanimationchk
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Light Attack
-
-
Actions
-
Hashtable - Create a hashtable
-
Hashtable - Save Handle Of(Casting unit) as 0 of 0 in (Last created hashtable)
-
Hashtable - Save 1 as 1 of 0 in (Last created hashtable)
-
Unit - Pause (Load 0 of 0 in (Last created hashtable))
-
Animation - Play (Load 0 of 0 in (Last created hashtable))'s attack animation
-
Unit - Unpause (Load 0 of 0 in (Last created hashtable))
-
Hashtable - Clear all child hashtables of child 0 in (Last created hashtable)
-