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 / Turning A Light On and Off Again

Author
Message
ZacksQuest
14
Years of Service
User Offline
Joined: 25th Oct 2010
Location: Northern USA... all U need 2 know...
Posted: 23rd Jun 2012 20:56
I am working on a horror game that has one moment where you walk down a dark hallway then a light turns on at the end. Walk further and the light goes back off. Using the lightoff.fpi script and plrinzoneactivateused.fpi for the light and the triggerzone respectively, I found a way to turn it on. But I'm not quite sure how to turn it back off again. Does it require a new script, or is there another way to do this?

I like games.... and turtles... easy to use game development software... and cheese.... Ghouda Cheese.
TIMON
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: France
Posted: 24th Jun 2012 01:12
I think you should place a second trigger like the first one and it will turn back on
ZacksQuest
14
Years of Service
User Offline
Joined: 25th Oct 2010
Location: Northern USA... all U need 2 know...
Posted: 24th Jun 2012 01:52
The thing is, I've tried to do it using that. The light turns on when activated the first time, then it doesn't turn back off.

I like games.... and turtles... easy to use game development software... and cheese.... Ghouda Cheese.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 24th Jun 2012 02:49
Hi ZacksQuest. The problem is your trigger script. plrinzoneactivateused.fpi will trigger the light on,but
stops there.I take it you want the light off again leaving the zone? Here try this, I know it works.Look a whats different.

Give it a unique name and place in trigger main.
ZacksQuest
14
Years of Service
User Offline
Joined: 25th Oct 2010
Location: Northern USA... all U need 2 know...
Posted: 24th Jun 2012 05:35
I love the script, it definately helps, but the thing is if I walk back over the triggerzone the light comes back on. It's supposed to only come on twice, to show a reveal, but it's not supposed to come back on if you go over the same area twice. I've tried messing with it myself, but still, I can't find a way to get it to only happen once when you walk over it.

I like games.... and turtles... easy to use game development software... and cheese.... Ghouda Cheese.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 24th Jun 2012 19:00 Edited at: 24th Jun 2012 20:05
@ZacksQuest
Quote: "It's supposed to only come on twice, but it's not supposed to come back on if you go over the same area twice"

I'm lost??? Do you mean like flash twice on?

Ok,I read your post and I think I understand.You want to light to come ON and OFF twice. Ok try this. For your trigger use the regular plrinzoneactivateused.fpi. Then for your lights use this

To keep it simple I used etimer(1000=one second)
Follow the script to see how it works,make adj's to
timer to suit your needs.

Login to post a reply

Server time is: 2024-11-24 01:09:45
Your offset time is: 2024-11-24 01:09:45