Added note about possible issue when using hs_invenwield incorrectly

This commit is contained in:
phobos2077
2017-02-24 13:57:00 +07:00
parent 17df8deb86
commit df5c81164f
+2
View File
@@ -402,6 +402,8 @@ hs_invenwield.int
Runs before wielding or unwielding an armor or a weapon by a critter (except when using inventory by PC). Runs before wielding or unwielding an armor or a weapon by a critter (except when using inventory by PC).
An example usage would be to change critter art depending on armor being used or to dynamically customize weapon animations. An example usage would be to change critter art depending on armor being used or to dynamically customize weapon animations.
NOTE: when replacing a previously wielded armor or weapon, the unwielding hook will not be executed.
If you need to rely on this, try checking if armor/weapon already equipped when wielding hook is executed.
Critter arg1 - critter Critter arg1 - critter
Obj arg2 - item being wielded or unwielded (weapon/armor), may be 0 when unwielding Obj arg2 - item being wielded or unwielded (weapon/armor), may be 0 when unwielding