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 level will not load...
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#8
RE: My level will not load...

Okay i now have this - (please tell me if im doing it wrong, it says line 5 and 15 is wrong)



////////////////////////////
// Run first time starting map
void OnStart()

AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor",true); (coding is wrong apparently)

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_3", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_3", 0, false);
RemoveItem("StudyKey");
}
(LINE 15 , WHICH IS APPARENTLY WRONG, whats wrong with havign a space?)
{
AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScript", true,

1);
}

void CollideScript(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");

}

////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
10-01-2010, 05:11 PM
Find


Messages In This Thread
My level will not load... - by LoneWolf - 10-01-2010, 03:12 PM
RE: My level will not load... - by HakePT - 10-01-2010, 03:38 PM
RE: My level will not load... - by LoneWolf - 10-01-2010, 04:09 PM
RE: My level will not load... - by Pandemoneus - 10-01-2010, 04:43 PM
RE: My level will not load... - by HakePT - 10-01-2010, 04:55 PM
RE: My level will not load... - by LoneWolf - 10-01-2010, 04:57 PM
RE: My level will not load... - by HakePT - 10-01-2010, 05:01 PM
RE: My level will not load... - by LoneWolf - 10-01-2010, 05:11 PM
RE: My level will not load... - by HakePT - 10-01-2010, 06:12 PM



Users browsing this thread: 2 Guest(s)