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
Need help on the inventory texts and door texts!
TerrorsEnd Offline
Junior Member

Posts: 22
Threads: 4
Joined: Jun 2012
Reputation: 0
#11
RE: Need help on the inventory texts and door texts!

(06-27-2012, 12:59 AM)Obliviator27 Wrote: You'll have to specify what doesn't work.
As far as your script goes, you're telling the door to lock. Use false instead of true.
The door unlocking doesn't work

void OnEnter()
{

AddUseItemCallback("OpenDoor", "cellarkey", "level_cellar_1", "UnlockLevelDoor", true);

}

void UnlockLevelDoor(string &in Item, string &in Entity)
{
SetLevelDoorLocked("level_cellar_1", false);
PlaySoundAtEntity("", "unlock_door", "level_cellar_1", 1, false);
RemoveItem("cellarkey");
RemoveItem("trollkey");
}

What's the problem? I tried to google it, youtube it etc. Can't find the solution..
06-27-2012, 01:08 AM
Website Find


Messages In This Thread
RE: Need help on the inventory texts and door texts! - by TerrorsEnd - 06-27-2012, 01:08 AM



Users browsing this thread: 2 Guest(s)