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
How to make locked door and key that opens it.
fantino Offline
Junior Member

Posts: 14
Threads: 2
Joined: Sep 2010
Reputation: 0
#4
RE: How to make locked door and key that opens it.

It doesn't work for me. Any idea Huh

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "awesomekey_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("awesomekey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave(
{
}
09-30-2010, 07:09 PM
Find


Messages In This Thread
RE: How to make locked door and key that opens it. - by fantino - 09-30-2010, 07:09 PM



Users browsing this thread: 1 Guest(s)