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 / Trigger zone to close door?

Author
Message
107295
17
Years of Service
User Offline
Joined: 26th May 2007
Location:
Posted: 13th Jul 2007 16:38
(1):Is there a script where: you walk into a trigger zone, and a door closes?

(2): Is there a script that shows a dynamic door, already open?

Nah.
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 13th Jul 2007 23:38
search......



Click on the picture to order your copy today!
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 14th Jul 2007 01:13 Edited at: 14th Jul 2007 01:14
This sorts out both. An already open door will close when you enter a trigger zone.

For a remote door....create a new version of the remote door script. Reverse the activated commands (=1 becomes =0 and vice versa)Set the main ai to the new remote door script.

This will ensure the door is open at the start.

Place a trigger zone with the main ai script set to plrinzoneactivateused.fpi Set the If Used parameter to the door name.

When you enter the trigger zone, the door will close.

One additional thing you can do is to remove the sound parameter set for the the Trigger Zone. I always do this with Trigger Zones otherwise you get that 'click' sound when entering.
107295
17
Years of Service
User Offline
Joined: 26th May 2007
Location:
Posted: 14th Jul 2007 03:21
So, I leave the 2's 3's and the sounds?

Nah.
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 14th Jul 2007 12:29
These are the 2 lines with the changes:

:state=0,activated=0:state=1,setframe=0,sound=$0

:state=2,activated=1:state=3,sound=$1,colon

Leave the sound commands in as they are for the door.

You can remove the sound parameter from the Trigger Zone properties. This will stop the clicking sound as you enter the zone. I never have this sound anyway for Trigger Zones.

Login to post a reply

Server time is: 2024-11-23 20:48:05
Your offset time is: 2024-11-23 20:48:05