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
Script Help locked door doesn't work at all - Solved
Pigsareit Offline
Junior Member

Posts: 15
Threads: 2
Joined: Jun 2012
Reputation: 0
#1
Brick  locked door doesn't work at all - Solved

Hey there frictionalgamesforum,
I've been working on this for a while, and I've taken a look at how other maps have done it, but I can't seem to get unlockable doors to work.

Here's what I've got:

The code I've got for the door

[Image: 773a4cda.jpg]

[Image: ca658e6c.jpg]

I'm guessing it has something to do with the callbacks, but I'm not really getting it, so. Any help is welcome.

Thanks,
Pigsareit

ninja edit: Ok, I think I just realised my mistake after reviewing that. The names dont match up. I cant delete the post cause it says I have yet to be authorized by a mod. so . I ll reply with what happens.


ninja edit 2: No, Ok. I updated the tinyurl to the code, I guess I am actually doing something wrong.


ninja edit 3: Ok. I fixed it. It was the callbacks.
For future refrence:
in void OnStart()
AddUseItemCallback("", "startroom_key", "startroom_door", "UnlockBedroom_Locked", true);



Thanks anyway. Smile
(This post was last modified: 06-11-2012, 11:56 PM by Pigsareit.)
06-11-2012, 11:34 PM
Find




Users browsing this thread: 1 Guest(s)