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
#7
RE: Levers!

(02-14-2012, 12:28 AM)Your Computer Wrote:
(02-14-2012, 12:25 AM)Alento Wrote: okay, very well.. I give up. Also to tired now, can't think..

Post your entire script when you're no longer tired.

void OnStart()
{

SetEntityConnectionStateChangeCallback("lever1", "Stuck");
SetEntityConnectionStateChangeCallback("lever2", "Stuck2");
SetEntityConnectionStateChangeCallback("crank1", "Stuck3");
}

void Stuck3(string& asName, int alState, bool abEffects)
{
SetWheelStuckState("crank1", 1, true);
if(alState == 1){
PlaySoundAtEntity("", "explosion_rock_large.snt", "soundrock", 0, false);
}
}

void Stuck2(string& asName, int alState, bool abEffects)
{
SetLeverStuckState("lever2", 1, true);
if(alState == 1){
SetWheelStuckState("crank1", 0, true);
}
}

void Stuck(string& asName, int alState, bool abEffects)
{
SetLeverStuckState("lever1", 1, true);

if(alState == 1){
SetLeverStuckState("lever2", 0, true);
}
}

So that's the code, i changed it to that today, yesterday i was just.. bah, nvm. Well i tried that now, and still wont work. Any ideas?

And btw, another problem that came up, i want "the player body" to fly backwards, like an "PropForce" but it didn't work, also tried BodyForce, wont work either.. Ideas on that soo?

Thanks!

---------Want help with YOUR Custom Story? ---------
http://www.frictionalgames.com/forum/user-19049.html
(This post was last modified: 02-14-2012, 11:33 AM by Alento.)
02-14-2012, 11:30 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: 2 Guest(s)