Jump to content

NPC won't stop teleporting to Xmarker after script should be done


McFearo

Recommended Posts

This one's a doozy and it's a pretty consistent bug my playtesters are reporting.

 

My NPC Companion, Dixie, leaves the party and is hidden at a hard-to-reach x marker for part of his quest so the player has to do something without him (inspired by Arcade Gannon who moves to an ArcadeWaitForPlayer marker when he leaves to get his tesla armor). When the player completes the objective, it updates the quest stage to stage 40, and the script for stage 40 tells the companion to move to a new marker at the Mojave Outpost and displays an objective to go meet him there.

 

I was running into a bug where he wouldn't move to the Mojave Outpost when the quest updated and stayed at his "hidden" x marker, so I made a trigger at the Mojave Outpost whose scripts only run during Stage 40 of the quest, that also tells him to move to the new X marker when the player walks through it. That way if he's not there when they arrive he'll appear when they walk through the trigger.

 

But now, when the quest is completed, he keeps trying to teleport back to his x marker even after being re-hired and the player trying to leave. If the player fast travels away, he appears at the new location for a split second and disappears.

 

I've made sure the trigger is only working during Stage 40 of the quest. I've marked the trigger for delete after it's used. I've even marked his X marker for disable and delete after the trigger is used.

 

The only things that should be telling him to go to that x marker are the quest stage itself, and the trigger. Both should be done by the time he's re-hired. But he keeps teleporting back, making him unusable as a companion.

 

Is it possible that the quest stage is the problem? Is it maybe that that script continues running even after the quest updates to stage 70? Should I add an IF statement to the script in the quest stage to make sure it only sends him to his X marker once?

Link to comment
Share on other sites

TL;DR version: I guess my question is the bit at the very end. Do result scripts in Quests just keep running even after the quest updates to a different stage? Is it possible that that's what's causing him to keep teleporting to his X marker?

Edited by McFearo
Link to comment
Share on other sites

Nevermind I think one of my playtesters just discovered the source of the problem and it was another script I wrote with no contingency to stop the script from running when it was done. I think we have now isolated and fixed the problem, it was an error I made.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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