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 / Secret moveable wall - Move up/down

Author
Message
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 24th Jun 2011 17:26 Edited at: 24th Jun 2011 17:27
I've seen a 'moveable' wall that can swivel but this script allows the wall to move up or down when enter is pressed.

Add a dynamic entity (false wall is a good example from the stock media).

Set the following properties:-
Always Active = Yes
Strength = 0
Friction = 0
Weight = 0
Immobile = Yes
Set the main script to :-

:state=0,plrusingaction=1:state=1,coloff
:state=1:moveup=1,localvar=1,incvar=1
:state=1,varequal=80:state=2
:state=2,plrusingaction=1:state=3
:state=3:moveup=-1,localvar=1,decvar=1
:state=3,varequal=0:state=0,colon

Feel free to experiment for example when player enters trigger zone, wall moves up for a while and then down.

The only drawback is that if you modify the script so the wall moves up or down too slowly, the player can walk through it (only when it's moving). Unfortunately there is no way round this. You need collisions off when it moves so it does not get stuck in it's surroundings when moving.
Shadowdeath
13
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 24th Jun 2011 17:48
Cool Script.
Thanks for sharing.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 24th Jun 2011 17:59
Just played around with it. Very nice! Thanks for sharing.

Brian.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 24th Jun 2011 18:57
Just looking through it and I like how you used a variable instead of a timer. Timers can beannoying somtimes and refuse to work properly... Great script!


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 25th Jun 2011 00:05
Thanks all. A few other things can probably be done with this. Player arrives at a chasm. No visible way across. Player notices low looking pillars in floor of chasm. Pull switch, pillars rise up allowing safe passage across. Ensure each pillar starts in a floor recess.
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 26th Jun 2011 20:48
The moveup=-1 doesn't work. Moveup=-1 is the same as moveup=1. Sadly, movedown doesn't exist yet.... So this script can't really be completed...


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 26th Jun 2011 22:39 Edited at: 26th Jun 2011 22:39
Hi. I can confirm that moveup=-1 does work. The script has been tested and definately works! Please check that the entity you are using has all the correct properties set.
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 27th Jun 2011 04:07
I meant to say that it doesn't work for character entities.


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 27th Jun 2011 10:07
Ok no problem. This is just an object entity script...walls, columns, gates etc.
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 27th Jun 2011 18:47
nice share
thanks for the script

Login to post a reply

Server time is: 2024-11-28 00:14:25
Your offset time is: 2024-11-28 00:14:25