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?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#16
RE: Adding mementos to locked doors?

(11-05-2012, 05:34 PM)Tigerwaw Wrote: ok, here it is:

Spoiler below!


void OnStart()
{
AddEntityCollideCallback("Player", "ChangeLevelScript_1", "ChangeMap_1", true, 1);
}

void ChangeMap_1 (string &in asParent, string &in asChild, int alState);
{
ChangeMap("InsideCabin.map", "PlayerStartArea_2, "player_jump6.ogg", "player_bodyfall5.ogg");
}

if(GetSwingDoorLocked("BlockedDoor") == true);
{
AddQuest("BlockedDoorQuest", "BlockedDoorQuest");
}


void OnEnter()
{
SetSkyBoxActive(true);
SetSkyBoxTexture("NightSky.dds");
}

Hello!

ChangeMap("InsideCabin.map", "PlayerStartArea_2, "player_jump6.ogg", "player_bodyfall5.ogg");


After PlayerStartArea_2, you missed a quotation mark. If you're using notepad++ or geany (which you should be using for scripting) be sure to set the language to C++; this color codes everything and makes mistakes like that easier to point out.

Hope that helped!

I rate it 3 memes.
11-06-2012, 11:30 AM
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: 3 Guest(s)