Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keys opening doors
Author Message
RangerEDinc Offline
Junior Member

Posts: 6
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)