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 / Help required creating 'descending ladder'

Author
Message
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 9th Dec 2011 18:50
Hi all, as I mentioned in another thread, I'm in the process of creating a working ladder which uses an invisible anti-grav platform.

So far, I've managed to create a ladder where the player starts off at the foot of it and presses the 'use' key, spawning the anti-grav platform under the player's feet. The player then uses the 'page up' and 'page down' keys to ascend and descend the ladder.

However, I'm having difficulties creating the ladder where the player starts off at the top.

The problem I'm having is where the player has to 'use' a ladder entity which is beneath the player.

I've tried using the 'plrdistwithin' and 'plrhigher' conditions. The 'plrdistwithin' doesn't work at all, whilst the 'plrhigher' spawns the anti-grav platform where-ever I am on the same level as the ladder I want to descend (does that make sense?). I've tried to use a combo of those two conditions so that the ladder can only be 'used' when the player is both near it and above it, but it still doesn't work.

Is/are there any other condition/s I can use, whereby the player can only 'use' the ladder when he/she is both next to it AND above it?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 9th Dec 2011 23:50
Hi Bruce,

I recall Brian had a good ladder script. It is as follows:



The thing with his script was that when you were in front of the ladder, it would "lift you up" to the top and as long as a segment ceiling was in place, you would not shoot straight up. In my WW2 game it worked perfect, but in an open level I'd shoot from layer 5 to 10 shouting "This is going to hurt" LOL That was one method.

The common method now is not using a script. Instead, we model ladders with the "slanted step platform", which is transparent and allows the player to walk up or walk down a ladder.

Currently, we tried to look at making a script for descending a ladder, but found the common method more to be practical. However, if you find an idea and need some help testing it out, I'm more than happy to do so.


Twitter: @NFoxMedia
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 10th Dec 2011 00:17 Edited at: 10th Dec 2011 00:19
Thanks Blackfox, I've tried the 'sloping step platform' method and found it to be not what I'm after. I didn't like it aesthetically or functionally. The ladder I've created so far, is based on rolfy and Brians' manual lift, which works in much the same way as Brians' ladder scripts (meaning it won't go any further when it reaches a segment ceiling, just as you mentioned).

When I was creating my ladder, I wanted something that the player had full control over, hence using the 'page up' and 'page down' keys to ascend and descend. I figured, if it works for the manual lift, surely I can get it to work with a ladder. Little did I know!!

Anyway, putting aside the ladder for now, are there any conditions that allow a player to 'use' an entity beneath his feet? This might be usefull to know for other purposes...

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 10th Dec 2011 00:29
Quote: "Anyway, putting aside the ladder for now, are there any conditions that allow a player to 'use' an entity beneath his feet? This might be usefull to know for other purposes..."


Unfortunately, I do not know of any off the top of my head. Maybe email Scene Commander and see if he might know of any or maybe include into the v1.19 BETA. He would be the one I would contact for help on that.


Twitter: @NFoxMedia
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 10th Dec 2011 00:50
Ok, thanks, will do

Login to post a reply

Server time is: 2024-11-24 04:53:33
Your offset time is: 2024-11-24 04:53:33