I'm working on an addon that adds a new follower who's armor is magically bound to his body. Now, it wouldn't make much sense if the player could go around taking his gear on/off or putting new equipment on him, so I was wondering how I go about making an item unequipable after it's been equiped.
I've seen this done in other addons and in Darkspawn Chronicles so I know it's possible. Any help on this issue is greatly appreciated.
Forcing equipment (Item cannot be unequipped)
Débuté par
A Non E Mass
, juin 12 2010 04:40
#1
Posté 12 juin 2010 - 04:40
#2
Posté 13 juin 2010 - 09:29
SetItemIrremovable is supposed to do this, but I haven't tested it.
If you find that the player can still destroy the item, SetItemIndestructible will certainly prevent that.
You might consider SetCanChangeEquipment, but (according to the documentation) that prevents all unequipping, which probably isn't what you want.
If you find that the player can still destroy the item, SetItemIndestructible will certainly prevent that.
You might consider SetCanChangeEquipment, but (according to the documentation) that prevents all unequipping, which probably isn't what you want.
Modifié par Proleric1, 13 juin 2010 - 09:33 .
#3
Posté 14 juin 2010 - 03:39
Proleric1 wrote...
SetItemIrremovable is supposed to do this, but I haven't tested it.
If you find that the player can still destroy the item, SetItemIndestructible will certainly prevent that.
You might consider SetCanChangeEquipment, but (according to the documentation) that prevents all unequipping, which probably isn't what you want.
thanks youve been a great help





Retour en haut






