Originally Posted by Sir Tigär
Do i get the Information in LUA, if i Drawn/sheathe weapon in Game?
|
No, there is no such thing.
Originally Posted by Shinni
TogglePlayerWield changes the weapon state. You could do something like this:
Lua Code:
local old_toggle = TogglePlayerWield TogglePlayerWield = function(...) d("weapon state is changed") old_toggle(...) end
|
You can do that, but it is not accurate. There are events when your character draw or seathe weapon without triggering this function. For example when you start combat, character automatically draws a weapon. When you start interaction, your character automatically sheathe a weapon.
You will have to do more then just this hook.