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.
RaZoR~HaX Offline
Junior Member

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

(09-28-2010, 09:46 PM)Jordo76 Wrote: 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 !

No I do that but it still doesnt work for me, I need an already premade code on how tomake it so there can be more then one locked door on a level without another door being a level door
09-30-2010, 03:40 PM
Find


Messages In This Thread
RE: Help with a level that has more then two doors. - by RaZoR~HaX - 09-30-2010, 03:40 PM



Users browsing this thread: 1 Guest(s)