View Single Post
  #1  
Old 07-29-2014, 02:43 PM
noudess
Discordant
 
Join Date: Sep 2012
Location: Upstate NY
Posts: 274
Default quest::pause(60) - performing as expected?

Guys,

I have an NP on a grid. In EVENT_WAYPOINT_ARRIVE I have a quest::pause(60), which if I understand the documentation I can find, is supposed to suspend pathing for 60 seconds.

He reaches the wp I am checking for , and pauses forever. If I look at the code, it sets the timer to 60, but also sets a flag that says "distracted from grid". When the timer fires, it clears this flag but doesn;t reset any timer, and hence, leaves the mob immobile.

I could "fix" this, but I see tons of quests coded to use pause with a value. Many, many of them also code their own resume(), I am guessing because the pause timer didn't work. Others, seem to use pause differently, in ways I do not understand.

I am very hesitant to change the behavious as I dont want to break a ton of things.

Is quest::pause(60) supposed to pause the npc on his grid for 60 and resume, or pause him forever? It looks like pause(0) is the forever option.
Reply With Quote