Calling a quest in a script

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SuperSparkplug
Posts: 65
Joined: Fri Feb 06, 2015 3:51 pm

Calling a quest in a script

Post by SuperSparkplug »

Hi there,

Because of some difficulties doing this with the dialogue system, I want to make a script for certain objects that will call for an gameobject to be enabled if a certain quest is active. What function would I need to call?
User avatar
Tony Li
Posts: 22100
Joined: Thu Jul 18, 2013 1:27 pm

Re: Calling a quest in a script

Post by Tony Li »

Use the QuestLog class:

Code: Select all

using PixelCrushers.DialogueSystem;

if (QuestLog.IsQuestActive("questName")) {
    // enable your GameObject.
}
Post Reply