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 opening doors
RangerEDinc Offline
Junior Member

Posts: 6
Threads: 2
Joined: Jun 2011
Reputation: 0
#3
RE: Keys opening doors

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "ClosetKey_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("ClosetKey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}
06-08-2011, 04:36 AM
Find


Messages In This Thread
Keys opening doors - by RangerEDinc - 06-04-2011, 11:49 PM
RE: Keys opening doors - by RawkBandMan - 06-05-2011, 04:56 AM
RE: Keys opening doors - by RangerEDinc - 06-08-2011, 04:36 AM
RE: Keys opening doors - by WatzUpzPeepz - 06-08-2011, 01:38 PM
RE: Keys opening doors - by Roenlond - 06-08-2011, 04:55 PM
RE: Keys opening doors - by RangerEDinc - 06-08-2011, 06:26 PM



Users browsing this thread: 1 Guest(s)