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 Levers!
Alento Offline
Member

Posts: 64
Threads: 11
Joined: Jan 2012
Reputation: 0
#3
RE: Levers!

(02-14-2012, 12:00 AM)Your Computer Wrote: Instead of writing the code for you, how about you post what you have and we work from there?
well, for now, I probably have a completely crap code, but.. Here it is:


SetEntityConnectionStateChangeCallback("lever1","blowwall");
}

void blowwall(string &in asEntity, int alState)
{
SetPropStaticPhysics("lever2", true);
SetPropStaticPhysics("crank1", true);
}
{
if(asEntity "lever1", alState == 1){
SetPropStaticPhysics("lever1", true);
SetPropStaticPhysics("lever2", false);
SetEntityActive("key2pontus", true);
}

else if(asEntity "lever2", alState == 1){
SetPropStaticPhysics("lever2", true);
SetPropStaticPhysics("crank1", false);
}
}

As I said, this sure isn't even close, but, I tried as far as i could. ^^

---------Want help with YOUR Custom Story? ---------
http://www.frictionalgames.com/forum/user-19049.html
02-14-2012, 12:04 AM
Find


Messages In This Thread
Levers! - by Alento - 02-13-2012, 11:50 PM
RE: Levers! - by Your Computer - 02-14-2012, 12:00 AM
RE: Levers! - by Alento - 02-14-2012, 12:04 AM
RE: Levers! - by Your Computer - 02-14-2012, 12:16 AM
RE: Levers! - by Alento - 02-14-2012, 12:25 AM
RE: Levers! - by Your Computer - 02-14-2012, 12:28 AM
RE: Levers! - by Alento - 02-14-2012, 11:30 AM
RE: Levers! - by Your Computer - 02-14-2012, 01:13 PM
RE: Levers! - by Alento - 02-14-2012, 09:25 PM
RE: Levers! - by Your Computer - 02-14-2012, 09:33 PM
RE: Levers! - by Alento - 02-14-2012, 09:42 PM
RE: Levers! - by Your Computer - 02-14-2012, 09:44 PM
RE: Levers! - by Alento - 02-14-2012, 09:53 PM



Users browsing this thread: 1 Guest(s)