billypnats Posted January 15, 2024 Posted January 15, 2024 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?
wareware Posted January 15, 2024 Posted January 15, 2024 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
wareware Posted January 15, 2024 Posted January 15, 2024 Yeah that looks good. What do you mean by "I can start the mod with the player in a different city"? Have you set TirkQuest to Start Game Enabled?
billypnats Posted January 15, 2024 Author Posted January 15, 2024 Yep.. that was the reason. I'm an idiot. thank you
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now