Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Lift1.fpi

Author
Message
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 14th Jan 2011 04:17 Edited at: 14th Jan 2011 04:17
So while I was working with a lift, I wanted it to go up, stay there, and go back down when the player is X distance away. In trying to get this to work (which it hasn't) I have lost the original copy of lift1.fpi, and it would be great if someone simply uploaded it here of did a code snippet thing so I could copy and paste it.

Also, here is my current script for the lift that is supposed to go up, wait until player is X distance away, then do back down.

Any help is always greatly appreciated, as I am somewhat new to scripting.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 14th Jan 2011 20:07 Edited at: 14th Jan 2011 20:09
Original one is here:



Remember to back up your folders before you change the content!


I don't understand what you want..?

Did you want it to take the player up, then once the player has left it, go back down automatically?

What is going wrong currently?

Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 14th Jan 2011 21:30
Yes that is what I want, and thank you for the original. I thought it would be a simple solution, but I guess not.

Anyway right now the lift takes me up, and then does nothing when it reaches the top. I can run away to the other side of the room, and it doesn't go back down.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 14th Jan 2011 22:31 Edited at: 14th Jan 2011 22:52
Is this so they can't use it again, and just have to carry on with the level, like on L4D in the hospital?

If so, you could have it destroy itself?

Something like



X being the amount of health you give the lift.

If you don't want that, I might have found it, but I don't know for sure - it might not work properly.

I'll get to work on it.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 14th Jan 2011 22:42 Edited at: 14th Jan 2011 23:01
Oh, do you have one way? You don't want to be able to jump back down. D:

If not, I can code some for you...
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 14th Jan 2011 22:57
The matter of doors opening too many times is no problem for me, I can easily script that. After thinking about the L4D Hospital scenario, I think what I really want is for the lift to take you up, and then wait until you walk on top of it, then go back down, then wait for you to go on top of it and go back up, etc. I haven't tried scripting this yet, but I have other stuff to do too (college scholarships).

And again, all help is greatly appreciated!!

Login to post a reply

Server time is: 2024-11-24 14:47:11
Your offset time is: 2024-11-24 14:47:11