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
Sinth Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2012
Reputation: 0
#3
RE: Keys & Doors

(09-24-2012, 08:53 AM)KH55 Wrote: AddEntityCollideCallback("key_1", "LockedDoor1", "UsedKeyOnDoor", true, 1);


void UsedKeyOnDoor(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("LockedDoor1", false, true);
PlaySoundAtEntity("doorunlock", "unlock_door.snt", "LockedDoor1", 0.0f, false);
RemoveItem("key_1");
}


This should work, I think.
That didn't seem to work. :C
09-24-2012, 09:04 AM
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: 2 Guest(s)