Script This extends ObjectreferenceKeyword Property iron autoEvent OnEquipped(actor akactor)if (akactor == game.getplayer()) if (getbaseobject().haskeyword(iron)) do this and that endifendifendevent
When i test it on a weapon placed on the ground in the editor, it works perfectly. It does "this and that" and store correctly every variable.
If i place (in the editor) the same weapon in a container (or an actor or a merchant), when i equip it the "if keyword" part is jumped, like the objects has no keywords, but the rest of the script works perfectly.
It's a really strange behavior, because if the weapon is spawns on the ground, when i drop and get it in a container, it works perfectly



