Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Adding mementos to locked doors?
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#20
RE: Adding mementos to locked doors?

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");
}
(This post was last modified: 11-06-2012, 02:20 PM by craven7.)
11-06-2012, 02:16 PM
Find


Messages In This Thread
Adding mementos to locked doors? - by Tiger - 11-04-2012, 07:36 PM
RE: Adding mementos to locked doors? - by ZodiaC - 11-04-2012, 07:40 PM
RE: Adding mementos to locked doors? - by Tiger - 11-04-2012, 07:54 PM
RE: Adding mementos to locked doors? - by ZeroPie - 11-04-2012, 11:18 PM
RE: Adding mementos to locked doors? - by Tiger - 11-04-2012, 11:19 PM
RE: Adding mementos to locked doors? - by ZeroPie - 11-05-2012, 02:01 AM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 12:36 PM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 01:17 PM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 04:03 PM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 05:34 PM
RE: Adding mementos to locked doors? - by Adny - 11-06-2012, 11:30 AM
RE: Adding mementos to locked doors? - by craven7 - 11-06-2012, 02:16 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 04:04 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 04:28 PM
RE: Adding mementos to locked doors? - by craven7 - 11-06-2012, 05:29 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 08:31 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 08:43 PM
RE: Adding mementos to locked doors? - by craven7 - 11-06-2012, 08:38 PM



Users browsing this thread: 2 Guest(s)