Jump to content

[LE] Script: add a item to inventory when equip armor


Recommended Posts

I'm trying to create a script that add a item or weapon when player equips a armor or armor piece
At this morning, the script was working fine, it didn't work after i made some changes, and i restored it back to the previous one, but still, didn't work at all

Here's the script

Scriptname bronzescoutwristblade extends ObjectReference
WEAPON Property PredatorInvisibleShortWristblade Auto
Event OnEquipped(Actor AkActor)
Game.GetPlayer().AddItem(PredatorInvisibleShortWristblade)
EndEvent
Event OnUnequipped(Actor AkActor)
Game.GetPlayer().RemoveItem(PredatorInvisibleShortWristblade)
EndEvent
Link to comment
Share on other sites

First, in CK did you verify that the weapon is actually assigned to the property on the script for the armor record?

Second, if you're using a save where the armor already has been spawned, delete the armor and spawn a new one. Preferably start with a new game, like coc to QASmoke and spawn the armor to test. Or at the very least a save where the mod has never been enabled when it was saved.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...