Jump to content

CK help - Quest trigger activated without player?


Recommended Posts


I'm working on a Tirk expansion mod, to start the quest, player will walk into a large enough box that on collision, triggers the start of the quest 

 

Quote

Scriptname TirkQuestTriggerScript extends ObjectReference  

Int RunOnce
Quest Property TirkQuest  Auto  
Actor Property PlayerRef  Auto  

Event OnTriggerEnter(ObjectReference akActionRef)
    If akActionRef == PlayerRef
        If RunOnce == 0
            TirkQuest.Start()
            TirkQuest.SetStage(0)
            RunOnce = 1
        EndIf
    EndIf
EndEvent

Issue is that it seems to start without player colliding it. I can start the mod with the player in a different city and it'll still start...

any help?

Link to comment

Some basic questions

 

Did you fill in the PlayerRef property on the script?

 

You can check what is triggering the trigger with debug,notification(akActionRef). Place it before the "If RunOnce == 0" to see what is counting as playerref

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use