Jump to content

Preventing player removing item from Follower


Recommended Posts

I want to give a potential follower a sword that can not be removed by the player when trading. I am guessing put a script on the sword, but what script?

Link to comment
Share on other sites

Scriptname mySwordScript Extends ObjectReference

Actor Property myFollower Auto

Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
	If akOldContainer == myFollower; we can't leave the follower!
		akNewContainer.RemoveItem(Self.GetBaseObject(), 1, true, akOldContainer)
		Debug.Messagebox("Follower must keep this, moving back")
	EndIf
EndEvent

Or just marking the sword as unplayable (uncheck the Playable box) should work. If using script be sure to fill that property.

 

http://skyrimmw.weebly.com/skyrim-modding/how-to-fill-properties-skyrim-modding-tutorial

Edited by Mattiewagg
Link to comment
Share on other sites

  • Recently Browsing   0 members

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