Jump to content

Trigger starts dialogue?


Recommended Posts

How do I get a trigger to start dialogue? I have my scene and dialogue set up and my trigger in place but I don't understand how I trigger the scene and dialogue. This is the script I wrote for it:

Scriptname InvestigationSpeechTrig extends ObjectReference 


ReferenceAlias Property Christopher Auto 


Scene Property InvestigationScene Auto 


Auto State waitingforPlayer
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer()
gotoState("hasbeenTriggered")
(InvestigationScene)
Self.Disable()
EndIf
EndEvent


EndState


State hasbeenTriggered
Event OnTriggerEnter(ObjectReference akActionRef)
EndEvent
EndState
Link to comment
Share on other sites

  • Recently Browsing   0 members

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