Jump to content

Recommended Posts

Posted (edited)

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

Edited by Firehawk777
Posted

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
Posted

I would try :

If YourObjReference.GetBaseObject() As MiscObject
   ; your code here.
endif
Posted

 

I would try :

If YourObjReference.GetBaseObject() As MiscObject
   ; your code here.
endif

Good catch. That's what I get for trying to write code from memory late at night.

  • Recently Browsing   0 members

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