I'm trying to save an Ability Code variable for a specific unit key. "Let's call it AddAbility" into a hashtable so I can add the ability back to a unit later. I already have the unit's handle as Unitkey
My issue is that I can't find a way to save ability code variables into a hashtable. All I can save is integers but to use Add Ability to Unit actions I need ability code. How do I work around this?
I have AddAbility[0] as a first ability and I want each integer as seperate ones for each unit.
This is a simple example of how i'm trying to add the ability.
My issue is that I can't find a way to save ability code variables into a hashtable. All I can save is integers but to use Add Ability to Unit actions I need ability code. How do I work around this?
I have AddAbility[0] as a first ability and I want each integer as seperate ones for each unit.
This is a simple example of how i'm trying to add the ability.
-
For each (Integer A) from 0 to Unitkey, do (Actions)
-
Loop - Actions
-
Unit - Add AddAbility[(Integer A)] to (Last replaced unit)
-
-