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.
fantino Offline
Junior Member

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

I have a problem with 2 locked doors. When i write this, one key open two doors.
void OnStart()

{
AddUseItemCallback("", "key_study_1", "mansion_2", "UsedKeyOnDoor", true);
AddUseItemCallback("", "key_study_2", "mansion_3", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlayMusic("safe.ogg", true, 1, 11, 1, true);
RemoveItem("key_study_1");

SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem("key_study_2");
}

And when i write this, the game crash.
void OnStart()

{
AddUseItemCallback("", "key_study_1", "mansion_2", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlayMusic("safe.ogg", true, 1, 11, 1, true);
RemoveItem("key_study_1");
}

{
AddUseItemCallback("", "key_study_2", "mansion_3", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem("key_study_2");
}

Can you help me please ?
10-02-2010, 06:10 PM
Find


Messages In This Thread
RE: Help with a level that has more then two doors. - by fantino - 10-02-2010, 06:10 PM



Users browsing this thread: 1 Guest(s)