Frictional Games Forum (read-only)

Full Version: AddQuest does not work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
this is the complete script:

Code:
void tictac(string &in asParient, string &in asChild, int alState)
{
SetEntityActive("mining_room_wall_1", true);
SetEntityActive("mining_room_wall_2", true);
SetEntityActive("mining_room_wall_3", true);
SetLightVisible("PointLight_1", false);
SetLightVisible("PointLight_2", false);
SetMessage("Messages", "sbarre", 0);
SetPlayerActive(false);
StartPlayerLookAt("wine02_1", 1, 1, "");
AddTimer("", 5, "lookat");
AddQuest("", "quest3");
}

lang:

Code:
<CATEGORY Name="Journal">
<Entry Name="Quest_quest3_Text">Cerca un modo per scappare dal primo piano</Entry>
</CATEGORY>

everything works except AddQuest
AddQuest("QUESTNAME", "quest3");

It needs a name so that you may remove it later.

Also, your syntax is messed up.
void tictac(string &in asParient, string &in asChild, int alState)

Remove the "i"
ok, now it works problem solved, thanks