Jump to content

Getting an ObjectReference type


Recommended Posts

Thanks. Though I get an error when trying this method. It says the type miscobject is incompatible for the referenceObject to throw

I modified the code up above, it should work. At least, I've used the keyword that way in my own mods with success.

 

Edit:

Here is some code direct from my FO4 Radio Mod:

 

    if (akSenderRef Is Actor && ((akSenderRef As Actor).GetDialogueTarget() == PlayerRef || (akSenderRef As Actor).IsTalking() == true || akSenderRef.IsInDialogueWithPlayer() == true))
        return
    endif
Link to comment
Share on other sites

  • Recently Browsing   0 members

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