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
how do i make a painting moveable?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: how do i make a painting moveable?

Basically, you must add another callback to void OnStart, (similar to the first one you did), and make a new function. That will look like this:


void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "key_2", "mansion_2", "KeyOnDoor_2", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, true);
}

void KeyOnDoor_2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0.0f, true);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Hope that helped!

I rate it 3 memes.
06-18-2012, 03:11 PM
Find


Messages In This Thread
how do i make a painting moveable? - by Hartmann - 06-18-2012, 02:10 PM
RE: how do i make a painting moveable? - by Adny - 06-18-2012, 02:18 PM
RE: how do i make a painting moveable? - by Adny - 06-18-2012, 03:17 PM
RE: how do i make a painting moveable? - by Adny - 06-18-2012, 03:11 PM



Users browsing this thread: 1 Guest(s)