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
Can anyone spot the problem?
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#4
RE: Can anyone spot the problem?

This should work.


void OnStart()

{

AddUseItemCallback("", "awesomekey_1", "castle_1", "KeyOnDoor", true);

AddUseItemCallback("", "Awesomekey_2", "Level_1", "KeyOnDoor", true);

}



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

{

SetSwingDoorLocked(asEntity, false, true);

PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);

RemoveItem(asItem);

}
02-15-2012, 11:49 AM
Website Find


Messages In This Thread
Can anyone spot the problem? - by QysteiN - 02-15-2012, 11:28 AM
RE: Can anyone spot the problem? - by palistov - 02-15-2012, 11:32 AM
RE: Can anyone spot the problem? - by QysteiN - 02-15-2012, 11:42 AM
RE: Can anyone spot the problem? - by jens - 02-15-2012, 11:49 AM
RE: Can anyone spot the problem? - by QysteiN - 02-15-2012, 12:17 PM
RE: Can anyone spot the problem? - by flamez3 - 02-15-2012, 12:30 PM
RE: Can anyone spot the problem? - by Dexakita - 02-15-2012, 12:43 PM
RE: Can anyone spot the problem? - by QysteiN - 02-15-2012, 12:50 PM
RE: Can anyone spot the problem? - by jens - 02-15-2012, 12:56 PM
RE: Can anyone spot the problem? - by Dexakita - 02-15-2012, 01:18 PM



Users browsing this thread: 1 Guest(s)