Crouch/Uncrouch Keybindings
Hi, is there an addon that allows to use different keys for entering and exiting stealth (crouch) or an addon that just makes the default crouch key to function only to enter stealth, not exit it myloweslife?
Is such an addon even possible to create? |
afaik: No, not possible.
One would need to be able to detect if you got into crouch state and then change the keybind somehow (which is not possible via API commands of addons , at least I don't know it would be possible without destroying all other keybinds of the same layer). And same way as you leave crouch to switch the keybindings back. |
I have an Idea how it might be possible to make an addon with the function you desire.
But I am fairly new to writing addons and i need do to some testing to see if my idea works. Maybe I'll get around to it this weekend. I will let you know how it turns out. |
If you manage to get this to work, what others tried and failed several times already, I'd be surprised :rolleyes:
As you said you are new to the addons: Before wasting your time tell us your idea and we can tell you if this is possible or not. |
Thats a very good point :)
my idea is based on the assumption, that you can mimic the default crouch hotkey. Like it is possible for the sheathe/unsheath hotkey with the function: "TogglePlayerWield()". I spend the last hour looking through some api documentation but i couldnt find such a function so far. The source code i only understood partly. Crouch is a special movement with the index 2, but didnt find a function to execute or toggle it.... |
Quote:
|
Quote:
And no, there is no API function for crouch/uncrouch toggles. And if there is one it is protected so you cannot abuse it for "botting". |
Crouch and other movements are simply that - special move keys. You can find the line of code where it is called by the game here, but OnSpecialMoveKeyPressed is private, so it cannot be used by addons.
|
All times are GMT -6. The time now is 10:20 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI