always returns null when you load a saved game, same for UnitId2String
, and AbilityId2String
doesn't work at all.
Originally Posted by common.j
// Not currently working correctly...
constant native AbilityId takes string abilityIdString returns integer
constant native AbilityId2String takes integer abilityId returns string
Added a demo map.
Note that i display the strings only for point orders and train orders, but it is the same with all other immediate orders and target orders, feel free to test it yourself.