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
Help with a level that has more then two doors.
Jordo76 Offline
Member

Posts: 57
Threads: 7
Joined: Sep 2010
Reputation: 0
#2
RE: Help with a level that has more then two doors.

Easy,Here some example code :
void UseKey(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem(asItem);
}


void OnStart()
{
AddUseItemCallback("useexit", "key_for_door_1", "door_1", "UseKey",true);
AddUseItemCallback("useexit", "key_for_door_2", "door_2", "UseKey",true);
}

I hope it help you !
09-28-2010, 09:46 PM
Website Find


Messages In This Thread
RE: Help with a level that has more then two doors. - by Jordo76 - 09-28-2010, 09:46 PM



Users browsing this thread: 1 Guest(s)