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 / How to modify this script?

Author
Message
Mark Henderson
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Right behind you
Posted: 4th Dec 2006 07:16
I found this useful script that closes a door when the player enters a trigger zone.


It works great but what i am wanting is to not only close the door once the player enters the trigger zone but also make it static or something so it can not be used again.

Can someone help me modify it to do what i am wanting?

I'm The One you push Aside, No-Where To Run, No-Where To hide.....
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 4th Dec 2006 15:14
uh, tough one, but try changing the door's main script to doorremote.fpi
the player opens the door with a switch and walks through, once on the other side they touch a triggerzone and the door closes, but they cannot reach the switch to open it again as the switch is on the other side of the door.

Mark Henderson
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Right behind you
Posted: 5th Dec 2006 03:04
Hey thanks for replying, i tried your method though and found that FPSC is been its usual self, theoreticaly your method would work but when i try iy the player can use the switch either side of the wall, even if he/she cant see it

Also i see your from london, i love london! Im from west yorkshire myself but i just thaught id state the fact i love london

I'm The One you push Aside, No-Where To Run, No-Where To hide.....
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 5th Dec 2006 07:33
that is because the switch is too close to the door. I, at one time, consitered using "plrcanbeseen" everytime the switch was used... but that (I THINK, may be wrong) is an enemy only command, and would have to be adjusted to allow it for regular entitys.

Perhaps it is allowed for all... try it!

Either way, easier is just to edit the door script

like so...
:state=0,activated=1:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff

(if there is no 'activated=0' then it can't revert)

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Dec 2006 07:44 Edited at: 5th Dec 2006 07:52
Quote: "(if there is no 'activated=0' then it can't revert)"

I think he wants it to close, just not open again once you go through.

In that case...

plrwithinzone was the right idea

That works for me on a remote door.
Place a trigger zone or an entity like a blood-splat(you can make it invisible) on one side.

:plrwithinzone=1:activateifused=1
:plrwithinzone=0:activateifused=0

As soon as they leave the zone (walk through the door) then it closes.
They can't go back through to the blood-splat, so they won't be in the zone to open it again .

Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-11-23 05:28:49
Your offset time is: 2024-11-23 05:28:49