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
Script Help Help...
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#13
RE: Help...

////////////////////////////
// Run first time starting map

void OnStart()
{
AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true);
}


UsedKeyOnDoor(string&in asItem, string &in as Entity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}


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

}



Getting insane haha, this is right?

now i get this error.. :
Expected Identifier
(This post was last modified: 04-04-2013, 08:00 PM by Darkboot.)
04-04-2013, 07:59 PM
Find


Messages In This Thread
Help... - by Darkboot - 04-04-2013, 05:38 PM
RE: Help... - by OriginalUsername - 04-04-2013, 06:07 PM
RE: Help... - by Darkboot - 04-04-2013, 06:20 PM
RE: Help... - by OriginalUsername - 04-04-2013, 06:38 PM
RE: Help... - by Darkboot - 04-04-2013, 06:57 PM
RE: Help... - by OriginalUsername - 04-04-2013, 07:08 PM
RE: Help... - by NaxEla - 04-04-2013, 07:16 PM
RE: Help... - by Darkboot - 04-04-2013, 07:18 PM
RE: Help... - by NaxEla - 04-04-2013, 07:22 PM
RE: Help... - by Darkboot - 04-04-2013, 07:37 PM
RE: Help... - by Slanderous - 04-04-2013, 09:30 PM
RE: Help... - by NaxEla - 04-04-2013, 07:43 PM
RE: Help... - by Yare - 04-04-2013, 07:44 PM
RE: Help... - by Darkboot - 04-04-2013, 07:59 PM
RE: Help... - by NaxEla - 04-04-2013, 08:47 PM
RE: Help... - by Yare - 04-04-2013, 08:48 PM
RE: Help... - by Darkboot - 04-04-2013, 09:06 PM
RE: Help... - by OriginalUsername - 04-04-2013, 09:30 PM
RE: Help... - by Darkboot - 04-05-2013, 10:44 AM
RE: Help... - by OriginalUsername - 04-05-2013, 12:18 PM
RE: Help... - by Tiger - 04-05-2013, 01:50 PM
RE: Help... - by Darkboot - 04-05-2013, 02:38 PM
RE: Help... - by Darkboot - 04-05-2013, 07:27 PM
RE: Help... - by OriginalUsername - 04-05-2013, 05:43 PM



Users browsing this thread: 2 Guest(s)