GetContainer command?

Post » Tue Nov 20, 2012 7:28 pm

I asked this in QQ&QA thread, but never got a reply so I'll try here:

Does anyone know what the Papyrus version of Oblivion's GetContainer is? I saw a post elsewhere online that it is literally just GetContainer(), but when I try this I get a message telling me that the function doesn't exist.

What I'm looking for is the Papyrus equivelant of :

Set Target to MySelf.GetContainer

any help would be great, as right now it's the last bit o my Mod I'm stuck on :/
User avatar
priscillaaa
 
Posts: 3309
Joined: Sat Dec 30, 2006 8:22 pm

Post » Tue Nov 20, 2012 8:15 am

You'd want to use the http://www.creationkit.com/OnContainerChanged_-_ObjectReference event (from your object) as there is no Papyrus GetContainer.
ObjectReference kContainerEvent OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)	kContainer = akNewContainer ; Will be 'None' if droppedEndEvent
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm


Return to V - Skyrim