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
Attaching ladder pieces together
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#6
RE: Attaching ladder pieces together

I'm not sure what your script looks like (it would help if you posted it), but this should work fine:
PHP Code: (Select All)
void OnStart()
{
    
SetEntityConnectionStateChangeCallback("lever_name""LeverStateChange");
}

void LeverStateChange(string &in asEntityint alState)
{
    if(
alState == -1) {
        
SetSwingDoorLocked("door_name"falsetrue);
    }

You might need to change -1 to 1 (I can't remember which value is down and which is up).

In Ruins [WIP]
(This post was last modified: 04-11-2013, 11:12 PM by NaxEla.)
04-11-2013, 11:11 PM
Find


Messages In This Thread
Attaching ladder pieces together - by serbusfish - 04-11-2013, 03:30 PM
RE: Attaching ladder pieces together - by NaxEla - 04-11-2013, 06:43 PM
RE: Attaching ladder pieces together - by NaxEla - 04-11-2013, 11:11 PM



Users browsing this thread: 1 Guest(s)