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
Disable/enable ladder interaction?
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Disable/enable ladder interaction?

It seems that players can still climb a ladder area that's been set "inactive," so is there any other way to keep a player from interacting with a ladder area until something triggers it?

I have a ladder area that's set up behind a breakable cell wall, and want the player to destroy the wall before climbing down the ladder, but it seems like all they have to do is look through the hole and click the ladder to proceed. I've tried putting a large block_box in the way, but I can still reach through it to click the ladder.

(This post was last modified: 06-28-2012, 11:37 PM by Damascus.)
06-28-2012, 09:14 PM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#2
RE: Disable/enable ladder interaction?

In my story Deterioration, I could definitely set a LadderArea to inactive and have it switch states via a script, so I can't tell you why it doesn't work. It really should. Are you sure you got the names right? Perhaps you made a typo.

[Image: signature-2.png]
06-28-2012, 10:13 PM
Find
EXAWOLT Offline
Member

Posts: 113
Threads: 14
Joined: Apr 2012
Reputation: 3
#3
RE: Disable/enable ladder interaction?

Make sure you dont have 2 areas on the same place!
//////////////
The script to activate/deactivate any areas or entities is:

SetEntityActive("LadderArea_1", false);

false = inactive

true = active

simply nuff said




(This post was last modified: 06-28-2012, 10:23 PM by EXAWOLT.)
06-28-2012, 10:20 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#4
RE: Disable/enable ladder interaction?

Hmm, that seems to be working now. I don't know why it wouldn't before! Maybe I forgot to save. Thanks guys!

06-28-2012, 11:37 PM
Find




Users browsing this thread: 1 Guest(s)