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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My custom level keeps crashing
Starkiller2000 Offline
Junior Member

Posts: 5
Threads: 3
Joined: Mar 2011
Reputation: 0
#3
Solved: 8 Years, 11 Months, 2 Weeks ago RE: My custom level keeps crashing

I tried that and it did not work, it said unexpected end of file. Here is the revised code. Also does it look right, as in everything like the monster disappearing should work? Also they were not their for fancy look, they were there because i saw a forum about monster patrolling and that is what the code looked like.


////////////////////////////
// Run when entering map
void OnEnter()
{
SetEntityActive("servant_grunt_1", true);
AddUseItemCallback("", "key_tomb_rusty_1", "sewer_arched_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "key_tomb_1", "hatch_ceiling_1", "UsedKeyOnDoor1", true);





}



void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("sewer_arched_1", false, true);
PlaySoundAtEntity("", "unlock_door", "sewer_arched_1", 0, false);
RemoveItem("key_tomb_rusty_1");



}

void UsedKeyOnDoor1(string &in asItem, string &in asEntity)
{

SetSwingDoorLocked("hatch_ceiling_1", false, true);
ChangeMap("level2.map", "PlayerStartArea_1", "", "");

}









////////////////////////////
// Run when leaving map
void OnLeave()
{

}
(This post was last modified: 03-30-2011, 11:53 PM by Starkiller2000.)
03-30-2011, 11:52 PM
Find


Messages In This Thread
RE: My custom level keeps crashing - by Starkiller2000 - 03-30-2011, 11:52 PM



Users browsing this thread: 2 Guest(s)