Jump to content

"OnSit" and "OnGetUp" Events not firing, need help


Recommended Posts

I was working on a new update to my mod, and used the events like so:

Event Actor.OnSit(Actor akSender, ObjectReference akFurniture)
	Debug.Trace(Self + ": Player used furniture '" + akFurniture.GetName() + "'")
EndEvent

Event Actor.OnGetUp(Actor akSender, ObjectReference akFurniture)
	Debug.Trace(Self + ": Player stopped using furniture '" + akFurniture.GetName() + "'")
EndEvent

I even registered them correctly:

Function RegisterForNeeded()
	RegisterForMenuOpenCloseEvent("BarterMenu")
	RegisterForRemoteEvent(KillActorEvent, "OnStoryKillActor")
	RegisterForRemoteEvent(LockpickEvent, "OnStoryPickLock")
	RegisterForRemoteEvent(HackComputerEvent, "OnStoryHackTerminal")
	RegisterForRemoteEvent(PlayerRef, "OnSit")
	RegisterForRemoteEvent(PlayerRef, "OnGetUp")
EndFunction

Event OnQuestInit()
	InitializeAllSkills(SkillsArray)
	RegisterForNeeded()
EndEvent

I really need help here, because this will make or break a certain feature of my mod.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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