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 on Doors...
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#3
RE: Keys on Doors...

void OnStart()
{
AddUseItemCallback("", "studykey_1", "mansion_2", "OPEN", true);
}

void OPEN(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false);
RemoveItem(studykey_1);
}


You forgot to declare mansion_2 two times in the OPEN function.

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
12-01-2012, 08:09 AM
Website Find


Messages In This Thread
Keys on Doors... - by ryan1431 - 12-01-2012, 07:54 AM
RE: Keys on Doors... - by JMFStorm - 12-01-2012, 08:06 AM
RE: Keys on Doors... - by ryan1431 - 12-01-2012, 10:32 AM
RE: Keys on Doors... - by GoranGaming - 12-01-2012, 08:09 AM
RE: Keys on Doors... - by TheGreatCthulhu - 12-01-2012, 09:13 PM



Users browsing this thread: 1 Guest(s)