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 / Open then close a door with 2 triggerzones help

Author
Message
RAXMUX Games
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Sweden
Posted: 13th Mar 2011 18:12 Edited at: 13th Mar 2011 18:21
Hi
I'm trying to make a script that opens a remote door with a triggerzone then close it again with an other trigger zones.
My scripting skills are ... worthless ... so I really need some help.

Thanks in advance

Just call me Raxmux
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 13th Mar 2011 18:18 Edited at: 17th Apr 2011 18:10
:::::REDACTED BY SETH BLACK:::::

...I'm done dealing with you people.

RAXMUX Games
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Sweden
Posted: 13th Mar 2011 18:35
Quote: "...simplest way to achieve this effect would be to modify one of the stock switch
scripts, for use within a triggerzone"


I've tried that but I don't know for sure what I should change

Just call me Raxmux
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 14th Mar 2011 10:12
I've just created something similar for an FPSC competition. I don't have the script on this computer, but i'll try and post it this evening.

In principle the script works as follows:
Trigger Zone 1: sets activation level of door to 10 using:

Trigger Zone 2: sets activation level of door to 100 using:


the door's main script is then modified so that it opens when it's activation level is 10 and closes when it's 100 using the "activated=" condition.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 14th Mar 2011 21:38
OK here's my updated door script:



Enjoy

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
RAXMUX Games
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Sweden
Posted: 15th Mar 2011 17:16
Ched80@ Can't find a way to explain how greatfull I am.

A BIG THANKS

Just call me Raxmux
Sparrowhawk
13
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 17th Apr 2011 15:28
I cant seem to get this to work. How do you set up the trigger zone?
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Apr 2011 09:33
you'll need to write some custom scripts for the triggerzones.
one to open the door (by setting the door as a target and then activating the door with 'activatetarget=10')
And another to close the door, this time activating the door at 100.
The two scripts will be virtually identical, except for the activation level.
Does this help?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2024-11-24 08:41:19
Your offset time is: 2024-11-24 08:41:19