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
Small little Issue.
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: Small little Issue.

Both functions call same function called "KeyOnDoor"

You need to make 2 different callbacks one is KeyOnDoor and other is KeyOnDoor2

And both of them opens different doors Smile!

Aka, it should be like this:

void OnEnter()
{
AddUseItemCallback("", "key_2", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "key_3", "mansion_2", "KeyOnDoor2", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key_2");
}

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

The Interrogation
Chapter 1

My tutorials
10-06-2011, 11:22 PM
Find


Messages In This Thread
Small little Issue. - by A Tricky Carnie - 10-06-2011, 10:59 PM
RE: Small little Issue. - by Your Computer - 10-06-2011, 11:06 PM
RE: Small little Issue. - by A Tricky Carnie - 10-06-2011, 11:18 PM
RE: Small little Issue. - by Elven - 10-06-2011, 11:22 PM
RE: Small little Issue. - by Your Computer - 10-06-2011, 11:23 PM
RE: Small little Issue. - by A Tricky Carnie - 10-06-2011, 11:25 PM



Users browsing this thread: 1 Guest(s)