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 / Two Way Auto Lift

Author
Message
uman
Retired Moderator
19
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 15th Sep 2005 14:38
Not sure how lifts are supposed to work exactly in FPSC - seems to me they either go up or down - not both.

Anyone help with this :

I want a (single) lift to go automatically to the level a player is located on. i.e. go to lift base if the player is there - go to lift top if the player is there. (In between well forget that - thats asking to much).

I have scripted a switch to work with lift that I can call a lift to player position, but thats not what I want - I could get a workaround using the switch idea and cheat but again not whats wanted and is open to flaws.

A simple script which does whats wanted would be best (less to cause probs).

I have tried with varying amounts of success to achieve this - go to player level auto lift thing but can only get it to go one way - up or down, not both. i.e. I have the lift so that when the player gets on it the lift goes up and when he steps off it returns to the base from whence it came ready to go up again. Whay I need is for it to - work in both directions \"A two way functioning auto lift\"

Any help would be much appreciated.

Thank you.

Matinuker
20
Years of Service
User Offline
Joined: 25th Mar 2004
Location:
Posted: 15th Sep 2005 21:22
i can't figure lifts out either, sorry
uman
Retired Moderator
19
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 15th Sep 2005 21:29
Well lifts work fine but they are designed to either go up or down - not both which is what I need. Might hep many actualy.
Lance
20
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 15th Sep 2005 23:13
Uh..

I just have the demo and I tried the AntigravLift and it goes up and down.I walked up to it and it went up.I stepped off it to enter another room and then back on and it went down.


:?
Merranvo
18
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 15th Sep 2005 23:24
uman... I am not in my prime, please check the source that I type.

:raycastup=0 100:timerstart,state=15
:raycastup=0 -10:timerstart,state=10

;When possible stop position, stop for 2.5 sec
:raycast=150 1000:timerstart
:raycast=-150 -1000:timerstart

;when plr off lift, stop
:plrdistfurther=60:state=1

:state=0:timerstart,state=1
:state=1,plrdistwithin=40:state=10

:state=10,plrusingaction=1:state=15
:state=10,timergreater=2500:moveup=1

:state=15,plrusingaction=1:state=10
:state=15,timergreater=2500:moveup=-1

:shotdamage=1:state=666
:state=666:coloff

Merranvo, taking over the net, one forum at a time.

"ye oft de adopte early shalt move mountains, and be gods among men"
uman
Retired Moderator
19
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 15th Sep 2005 23:25
Yes lifts go up and will go back down if the player gets back on at that level - and vice versa will take a player down and go back up if he gets back on. Thats not what I have said or am looking to achieve. If you read my posts.....

What I am looking for is :


If the player is at a level above a lift platform it automatically goes up to where the player is and if the player is at a level below where the lift platform is it goes down to where the player is. Effectively it goes to collect the player - this is nothing to do with the player stepping on the platform. Its like in real life when you call a lift to a particular floor you may be on in a building via a button press - just I dont want the buttons or switches.

i.e. Lift platform automatically moves to player level

FPSC does not support that by default. You have an up lift or a down lift whichever you use the lift waits at the level the player gets off until the player gets back on before it will move to its original position - not whats wanted.

But thanks for your comment.

uman
Retired Moderator
19
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 15th Sep 2005 23:29
Ah Merranvo!

Thank you kindly

Quote: "I am not in my prime"


Me neither

I will try that out - thank you.

Excuse my ignorance wont you but Why is the shotdamage needed? - What does that do?

Merranvo
18
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 15th Sep 2005 23:35
raycastup=0 100:timerstart,state=15
:raycastup=0 -10:timerstart,state=10

;When possible stop position, stop for 2.5 sec
:raycast=150 1000:timerstart
:raycast=-150 -1000:timerstart

;when plr off lift, stop
:plrdistfurther=60:state=1

:state=0:timerstart,state=1
:state=1,plrdistwithin=40:state=10

;possibly changed in V1 (SOMEONE, GIVE ME TEH CODES...)
:state=1,plrhigher=100:moveup=1
:state=1,plrhigher=-100:moveup=-1

:state=10,plrusingaction=1:state=15
:state=10,timergreater=2500:moveup=1

:state=15,plrusingaction=1:state=10
:state=15,timergreater=2500:moveup=-1

:shotdamage=1:state=666
:state=666:coloff

Merranvo, taking over the net, one forum at a time.

"ye oft de adopte early shalt move mountains, and be gods among men"
Merranvo
18
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 15th Sep 2005 23:41
uman, uman, uman...

it is a joke, rather funny in the right situations...

If you shoot the lift, it will drop you to your grave, or tomb...

I updated to get that other part working, or should work... as I said, scripting changed in versions...

Merranvo, taking over the net, one forum at a time.

"ye oft de adopte early shalt move mountains, and be gods among men"
uman
Retired Moderator
19
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 16th Sep 2005 00:12
No luck,

I cant get those to move the platform at all.

If you promise not to laugh I can post the script I have made up that partially achieves the objective and see if you can improve it?

Merranvo
18
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 16th Sep 2005 01:57
your suppose to hit enter to change directions...

also, the "stop at other places" may (don't kid yourself merranvo, IS) be causing errors...

Latter... possibly posted on my site (I can't access this at my school)

Merranvo, taking over the net, one forum at a time.

"ye oft de adopte early shalt move mountains, and be gods among men"

Login to post a reply

Server time is: 2024-03-28 08:36:52
Your offset time is: 2024-03-28 08:36:52