ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   is player weapon drawn? (https://www.esoui.com/forums/showthread.php?t=1886)

Amadhi 07/02/14 09:34 AM

is player weapon drawn?
 
Anyone know of a way to determine if the players' weapons are drawn or sheathed?

GetActiveWeaponPairInfo() doesn't seem to reflect that state, unless I'm using it wrong. It returns 1 for primary weapon set, 2 for secondary weapon set, and I was expecting it to return 0 when weapons are sheathed but it doesn't.

zgrssd 07/02/14 11:33 AM

Quote:

Originally Posted by Amadhi (Post 10070)
Anyone know of a way to determine if the players' weapons are drawn or sheathed?

GetActiveWeaponPairInfo() doesn't seem to reflect that state, unless I'm using it wrong. It returns 1 for primary weapon set, 2 for secondary weapon set, and I was expecting it to return 0 when weapons are sheathed but it doesn't.

This addon sheats weapons when they are out after Combat end. Might give you a pointer:
http://www.esoui.com/downloads/info2...-Sheather.html

stjobe 07/02/14 03:35 PM

Hey there,

I'm the author of the addon linked above, and I sadly have to tell you that it's not possible to get information from the API whether weapons are drawn or not.

Further, there's no separate "draw weapons" or "stow weapons" API call; there's just a "toggle weapons" call, that draws them if they're stowed, and sheaths them if they're drawn.

Sad but true, that's the current state of the API.


All times are GMT -6. The time now is 06:22 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI