Has anyone experienced this odd behavior with unit types before? My User Type I have defined works in every field except for 'Unit Type'. Here I have a User Type defined that uses 'Unit' as a field and for some reason it always comes back as an empty string when i extract it out inside of a method using:
Variable - Set unitType = (User Data (AttackUnitStack, attackWaves[timerIndex], unit, forIndex))
Variable - Set unitCount = (User Data (AttackUnitStack, attackWaves[timerIndex], count, forIndex))
Variable - Set upgrade = (User Data (AttackUnitStack, attackWaves[timerIndex], upgrades, forIndex))
I get: "", 4, "SheildWall"
Whereas I have an 'upgrade' game link that works perfectly fine in this set of calls.
Has anyone experienced this odd behavior with unit types before? My User Type I have defined works in every field except for 'Unit Type'. Here I have a User Type defined that uses 'Unit' as a field and for some reason it always comes back as an empty string when i extract it out inside of a method using:
Variable - Set unitType = (User Data (AttackUnitStack, attackWaves[timerIndex], unit, forIndex))
Variable - Set unitCount = (User Data (AttackUnitStack, attackWaves[timerIndex], count, forIndex))
Variable - Set upgrade = (User Data (AttackUnitStack, attackWaves[timerIndex], upgrades, forIndex))
I get: "", 4, "SheildWall"
Whereas I have an 'upgrade' game link that works perfectly fine in this set of calls.
@riftgarret: Go
Oh the pains of programming, it was because I was using. 'User Data (Game Link)' and not 'User Data (Unit)'