Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spencer Mansion
AlexxShadenk777 Offline
Junior Member

Posts: 40
Threads: 5
Joined: Jul 2011
Reputation: 1
#11
RE: Spencer Mansion / Collaboration anyone?

Alright, I've been putting this off because I wanted to figure it out on my own but now I have no idea what I'm doing wrong. I made a key and a level door, and I want the two of them to get along.

What's wrong with this code? When I attempt to use the key on the door it just says "Can't use item this way."

void onStart()
{
    AddUseItemCallback("", "keysimple1", "mhbedroomdoor", "MHBedroom", true);
}


///
/// DOORS ///
///

void MHBedroom(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("mhbedroomdoor", false);
    PlaySoundAtEntity("", "unlock_door.snt", "mhbedroomdoor", 0.0f, true);
    RemoveItem("keysimple1");
}

After this is sorted out, I can then make another progress video. The dining room is finished, though I'm probably gonna leave it out of the first map and use a level door to get to it.
(This post was last modified: 07-13-2011, 09:52 PM by AlexxShadenk777.)
07-13-2011, 09:50 PM
Find


Messages In This Thread
Spencer Mansion - by AlexxShadenk777 - 07-02-2011, 04:59 PM
RE: Spencer Mansion / Collaboration anyone? - by AlexxShadenk777 - 07-13-2011, 09:50 PM



Users browsing this thread: 1 Guest(s)