Frictional Games Forum (read-only)

Full Version: Problem with ending a quest
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get a quest (CampingQuest) to end after it picks up an object (EndQuest1), but whenever I pick up said object, it doesn't end the quest.

void OnStart()
{
SetEntityPlayerInteractCallback("EndQuest1", "EndQuest", false);
}

void OnEnter()
{
}

void OnLeave()
{
}

void EndQuest(string &in asEntity)
{
CompleteQuest("CampingQuest", "CampingQuest");
}

Anyone have any idea what the problem is?
void OnStart()
{
SetEntityPlayerInteractCallback("EndQuest1", "EndQuest", false);
}

void EndQuest(string &in asEntity)
{
CompleteQuest("CampingQuest", "CampingQuest");
}

void OnEnter()
{
}

void OnLeave()
{
}
That didn't work.

Nevermind, I finally got it to work through trial and error Tongue
Where have you added the Quest if at all? I think, if it's in different .hps file for other map, the current .hps cannot import it from there.
(02-18-2012, 03:43 PM)Ermu Wrote: [ -> ]Where have you added the Quest if at all? I think, if it's in different .hps file for other map, the current .hps cannot import it from there.
Quests are not writed in .hps it's written in .lang so works over every map as long as you call them in your map Wink