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
Closet script
Pandachoko Offline
Junior Member

Posts: 47
Threads: 14
Joined: Aug 2012
Reputation: 0
#11
Still need help to Closet Script! :(

I still have problem with my closet script. My script is this:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "KeyCloset", "ClosetLock", "UnlockCloset", true);
}

void UnlockCloset(string &in asItem, string &in asEntity)
{
SetEntityActive("ClosetLock", false);
GiveSanityBoost();
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem("KeyCloset");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}

When I use my key on the block box. It says. you can't use the item here. Like the key to door problem, will some one help me Smile Big Grin Just say if you want pictures from the level editor to see how I spelled it in the boxes
08-03-2012, 11:57 PM
Find


Messages In This Thread
Closet script - by Pandachoko - 08-01-2012, 04:41 PM
RE: Closet script - by Kazakarumariou - 08-01-2012, 05:26 PM
RE: Closet script - by Pandachoko - 08-01-2012, 05:44 PM
RE: Closet script - by lolmaster - 08-01-2012, 06:07 PM
RE: Closet script - by Pandachoko - 08-01-2012, 06:18 PM
RE: Closet script - by Kazakarumariou - 08-01-2012, 08:31 PM
RE: Closet script - by Pandachoko - 08-01-2012, 08:50 PM
RE: Closet script - by Statyk - 08-04-2012, 01:17 AM
RE: Closet script - by Kazakarumariou - 08-04-2012, 01:24 AM
RE: Closet script - by Statyk - 08-04-2012, 01:49 AM
Closet script!!! Help!.?!!?!? - by Pandachoko - 08-01-2012, 05:10 PM
RE: Closet script!!! Help!.?!!?!? - by Pandachoko - 08-01-2012, 05:33 PM
Still need help to Closet Script! :( - by Pandachoko - 08-03-2012, 11:57 PM



Users browsing this thread: 1 Guest(s)