Thread Tools Display Modes
07/02/14, 09:34 AM   #1
Amadhi
Join Date: Jul 2014
Posts: 1
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.
  Reply With Quote
07/02/14, 11:33 AM   #2
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by Amadhi View Post
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
  Reply With Quote
07/02/14, 03:35 PM   #3
stjobe
 
stjobe's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
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.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » is player weapon drawn?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off