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 Locking Doors ,Give Item ,and Lights
nivramm Offline
Junior Member

Posts: 18
Threads: 1
Joined: Jan 2013
Reputation: 0
#20
RE: Locking Doors ,Give Item ,and Lights

Maybe you could script a function for locking and one for unlocking…and add at the end of both functions
an AddUseItemCallback which calls the other function…so locking causes the unlockfunction to run if key is again used on the door and otherway round.
But then u need to delete the AddUseItemCallback after collision…for having not both active^^.
I guess there is a more proper way…but i would try it like this. Dont know if it even works, only an idea.

edit: didn't see BeeKayK's post…forget mine if the if-way works
(This post was last modified: 01-23-2013, 01:11 PM by nivramm.)
01-23-2013, 01:09 PM
Find


Messages In This Thread
RE: Locking Doors ,Give Item ,and Lights - by nivramm - 01-23-2013, 01:09 PM



Users browsing this thread: 1 Guest(s)