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 / Portal weight switch...

Author
Message
Dude232
16
Years of Service
User Offline
Joined: 18th Jan 2008
Location:
Posted: 15th May 2009 01:15
I am trying to figure out how to get a door to open when the plr or the certain entity is within a switch but the door closes if it is not withing the zone i have the first part but need help with closing the door when the entity is not there

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th May 2009 06:58
Show us your script so far and we may be able to help.


The one and only,


Dude232
16
Years of Service
User Offline
Joined: 18th Jan 2008
Location:
Posted: 15th May 2009 14:44


heres the code

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 15th May 2009 15:21
This is one I used a while back for exactly the same scenario. It's just a matter of reversing what you already did.



Brian.

Dude232
16
Years of Service
User Offline
Joined: 18th Jan 2008
Location:
Posted: 15th May 2009 15:46
thanks xplosys
trying to make a portal similar game

Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 15th May 2009 16:19
xplosys, I have a question for you on your script. Wouldn't the condition ANYWITHINZONE include the player? The guide states that this is true when any entity is within the zone, but then there's the condition ENTITYWITHINZONE. What is the difference between these two?

Priest of the Church of Joe Wood
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 15th May 2009 19:27
Quote: " What is the difference between these two?"


Very good question! I can't remember the specifics because it was long ago, but there were instances where it worked for both, and some where it didn't.

What I was trying to accomplish was that the player would notice when he stepped on the platform, the door opened and when he stepped off it closed. The door was too far from the platform to step on it and run to the door, so he had to figure out that something need to be on the platform.

This is the way it worked for me then. That's all I remember.

Brian.

Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 15th May 2009 19:57
Thanks for the answer. I'm just curious if you scripted it like so:


...would that work? Or, should it be scripted as:


Your script is fantastic the way it is, and I know it works. I'm just curious as to the difference between ANY and ENTITY. Maybe when I get home I'll have to test this out...

Priest of the Church of Joe Wood
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 15th May 2009 20:21
...the former will exclude the player.

Login to post a reply

Server time is: 2024-11-25 01:34:34
Your offset time is: 2024-11-25 01:34:34