#AddAbility does not work
1 messages · Page 1 of 1 (latest)
Show screenshot of issue and code. If you mean there are no hotkeys then its most likely because first 6 ability slots already taken by hidden abilities (valve adding them during runtime)
Here, everything looks like this for me. I have all the slots of abilities free, the code seems to be normal, but there is no bind and I cannot pump and use it
Try create dummy abilities like rubick ones and fill first 6 slots with them to swap later in game
It's too crutchy, I just don't understand why it could be(
try SetAbilityByIndex?
Found 14 functions for index
🇸 🇨 EntIndexToHScript(entityIndex: EntityIndex): CBaseEntity|nil
Turn an entity index integer to an HScript representing that entity's script instance.
🇸 CDOTA_BaseNPC:GetAbilityByIndex(index: int): CDOTABaseAbility|nil
Retrieve an ability by index from the unit.
🇸 CDOTABaseAbility:GetAbilityIndex(): int
🇸 🇨 CEntityInstance:GetEntityIndex(): EntityIndex
🇸 GetEntityIndexForTreeId(treeId: uint): EntityIndex
Get the enity index for a tree id specified as the entindex_target of a DOTA_UNIT_ORDER_CAST_TARGET_TREE.
and 9 more…
Post also your kv of ability because i don't see any reason why you can't level up that ability (it have levels and plus button)
Here are all the parameters of the ability
if you met something quite wired, try to add a delay🤨
It would be funny if everything depended on the delay the second time, but no, he also writes an error, now I will test SetAbilityByIndex
SetAbilityByIndex will most likely not work because valve hidden abilities all have index = 0 in any slot. Try SwapAbilities instead (it 100% works for hotkeys and rest things)
It's all cool, of course, but why the hell doesn't AddAbility work)
You might have script error that make it use default values and for max level it most likely 0
This is as strange as possible, my hero has zero occupied ability slots, and if you set an ability in a txt file, it works, but as soon as you start giving it out, it starts to tremble
I don't understand, can I get more details?
Look at console for pink text and if thats the case there are will be errors like "Script not found" or something like that (i don't remember exact text)
I scrolled through the console, I didn't see anything like that
Try add any built it dota ability from any hero
If its works then its something related to your ability else something more global and special
Like lion stun and not something special like meepo ultimate
Good idea, I'll try it now
Okay, it's not funny anymore.......
How did you removed talent tree? You hide it from panorama or just set every talent to ""
is it caused by innate ability?
mouse hover on your hero, and type ent_hierarchy !picker in your console
take a screenshot
I was asking just to be sure its not new feature of dota because not long ago they changed how kv override works
🤔 you add abaddons ability in kv?
which one?
oh,well, I misunderstood
All my abilities work fine if they are given immediately to the hero in a txt file
I tried to remove the innate ability and another error was written to me
Maybe I also did something wrong with the hero, of course
AHHAHAHAHAHAHAH, I ADDED THE AXE INNATE ABILITY AND NOW THERE'S ANOTHER MISTAKE ALTOGETHER
I caught 3 mistakes)
here
I think this is the reason
if you create hero with ability slot empty
valve will auto add some other interaction ability (ie. twin_gate,lamp_use)
and those took over the ability slots with keybind
So I need to make a hidden ability right now?
new ability you add start with index 6, out of keybind ( QWEDFR
maybe
but simply swap could also resolve this
That is, after adding it, I will need to swap the ability to the desired slot?
HOORAY THANKS EVERYTHING IS WORKING YOU ARE THE BEST PERSON IN THE WORLD C.A.R
❤️
Спасибо!
🙂
And thank you for trying to help!