Perhaps try making a function and have OnActivate call it, instead of putting the code directly in the event? Totally wild guess, I'm not much of a Papyrus pro either.
I did this:
Code:
Scriptname StorageFlySCRIPT extends ObjectReference
Container Property FlyStorage Auto
Function OpenStorage()
FlyStorage.Activate(Game.GetPlayer())
EndFunction
Event OnActivate(ObjectReference akActionRef)
if (akActionRef == game.GetPlayer())
OpenStorage()
EndIf
EndEvent
Event OnStart()
Self.SplineTranslateToRef(game.GetPlayer(), 10.0, 50.0, 100)
EndEvent
Still gives me the same message. I have to agree, this error seems rather bizarre.
Edited:
I manage to fix it, all i had to do was to add the script to the container and remove the entire OnActivate part.
Only problem now seems to be that the container never if the same if I spawn multiple instances of it.