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
Keys and Doors
tehwhynot Offline
Junior Member

Posts: 4
Threads: 1
Joined: Oct 2012
Reputation: 0
#3
RE: Keys and Doors

Yeah i watch a tutorial on how to use a key to open a door and this is the script:

////////////////////////////
//Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key_1");
}


I tried to copy everything exept run first time and voidOnstart and I got a ERROR.
Help me pls
10-14-2012, 12:36 PM
Find


Messages In This Thread
Keys and Doors - by tehwhynot - 10-14-2012, 12:28 PM
RE: Keys and Doors - by Ongka - 10-14-2012, 12:33 PM
RE: Keys and Doors - by tehwhynot - 10-14-2012, 12:36 PM
RE: Keys and Doors - by Ongka - 10-14-2012, 12:56 PM
RE: Keys and Doors - by tehwhynot - 10-14-2012, 01:01 PM
RE: Keys and Doors - by The chaser - 10-14-2012, 01:11 PM
RE: Keys and Doors - by tehwhynot - 10-14-2012, 01:13 PM
RE: Keys and Doors - by Ongka - 10-14-2012, 02:31 PM



Users browsing this thread: 1 Guest(s)