Jump to content

What function checks if I'm currently talking to a ref / actor?


PsychorGames

Recommended Posts

Simplest way is to put a script on that NPC with an OnActivate block. This should prevent normal activation unless you manually call the Activate function.

begin OnActivate
    if (bShowMessage)
        ShowMessage SomeMessage
    else
        Activate
    endif
end
Link to comment
Share on other sites

  • 3 weeks later...

Just using an event handler isn't sufficient, the normal activation event (starting dialogue) will still occur. You have to disable interaction with the NPC first, somehow.

 

With JIP LN NVSE you can use SetInteractionDisabled.

Link to comment
Share on other sites

  • 5 months later...

Hello me from the past and anyone who is wanting the know the same thing currently.

 

The trick is to use the function "ObjectUnderReticle" OR "GetCrosshairRef"

set GuyInFrontOfMe to GetCrosshairRef

if iscontrolpressed 5
            GuyInFrontOfMe.StartConversation Player 00Greeted
endif

This is what I did for my mod Hire And Recruit.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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