[Solved] UnitMakeAbilityPermanent() giving undeclared variable error

Status
Not open for further replies.
Level 3
Joined
Oct 25, 2017
Messages
43
So, I am trying to make an ability permanent when its bought so that it carries over when morphing the hero. The problem is, when I use the raw ability ID in the custom script, I get an undeclared variable error.

Code:
  • Custom script: call UnitMakeAbilityPermanent(GetTriggerUnit(), true, A01T)
The spell is a custom spell with the ID A01T:ANhs and I did try using the full ID and only the base ability ID (ANhs).

Any ideas?

Thanks :)
Nevermind.. Because of the low video resolution on this s***y laptop I couldn't see that I wasn't closing the apostrophe at the end of the ID properly... Pay attention to details folks...
 
Last edited:
Status
Not open for further replies.
Top