(11-06-2012, 02:16 PM)craven7 Wrote: if(GetSwingDoorLocked("BlockedDoor") == true);
{
AddQuest("BlockedDoorQuest", "BlockedDoorQuest");
}
the semicolon after the condition needs to be removed.
Also (the bigger problem I guess) your if (the code I posted 2 lines above) is not in a function/methode.
If you want to add a memento to a locked door I would do it like this:
SetEntityPlayerInteractCallback("door","interactLockedDoor",true);
void interactLockedDoor(string &in item)
{
AddQuest("","lockedDoor");
}
string &in asItem is only used when you use an item on an entity. And that is: (string &in asItem, string &in asEntity)
(string &in asEntity) is when you interact with something
Trying is the first step to success.