Jump to content

Can OnWorkshopMode Event not work from a Quest?


Recommended Posts

I am using the following code within a Quest script:

Self.RegisterForRemoteEvent(PlayerRef, "OnWorkshopMode")

...

Event ObjectReference.OnWorkshopMode(ObjectReference akSender, bool aStart)
    Debug.Notification("OnWorkshopMode")
EndEvent

But, no notification happens when starting or closing workshop mode.

 

It's odd because I have several other ObjectReference Events working fine on that same script.

 

Any ideas?

Link to comment
Share on other sites

OnWorkshopMode doesn't get sent to the player. It only gets sent to the Workhsop object. So you first need to find out which workshop object is closest and register on that.

 

Ok. Thank you.

 

That is problematic for my purposes. I'm just wanting to turn off a hotkey during workshop mode. Will be cumbersome to find workshop objects just for this...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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