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 & Doors
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: Keys & Doors

////////////////////////////

// Run first time starting map

void OnStart()

{

AddUseItemCallback("", "key_1", "LockedDoor1", "UsedKeyOnDoor", true);

}



void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{

SetSwingDoorLocked("asEntity", false, true);

PlaySoundAtEntity("", "unlock_door", "LockedDoor1", 0.0f, false);

RemoveItem("asItem");

}



////////////////////////////

// Run when leaving map

void OnLeave()

{



}

Maybe this works.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
09-24-2012, 01:34 PM
Find


Messages In This Thread
Keys & Doors - by Sinth - 09-24-2012, 07:22 AM
RE: Keys & Doors - by KH55 - 09-24-2012, 08:53 AM
RE: Keys & Doors - by Sinth - 09-24-2012, 09:04 AM
RE: Keys & Doors - by i3670 - 09-24-2012, 09:39 AM
RE: Keys & Doors - by The chaser - 09-24-2012, 01:34 PM
RE: Keys & Doors - by FlawlessHappiness - 09-24-2012, 03:32 PM



Users browsing this thread: 1 Guest(s)