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 / alarm light script

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 18th Nov 2005 00:35
ok, in my game, i want to have it so when you step into a zone, a light goes on and starts to flash.
would that be somthing like this?

plrwithinzone,lightone,timerstart:state=1
state=1,plrwithinzone,timergreater=500,lightoff,timerstart:state=2
state=2,plrwithinzone,timergreater=500,lighton,timerstart:state=1

would it be like that?

dont assune cause u make an ass out of u and me
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 18th Nov 2005 03:49
Start each line with a colon.
And take the E out of lighton in the constant state.

Your second colons are misplaced as well.
Lighton, lightoff, and timerstart are Actions not Conditions.

Here's your code re-written as suggested.



But I think it still has a logical error, because of the first line.

Try this instead...
Just don't forget to set the Light's STATIC MODE to NO.



Now when they stand in the zone it should flash and when they step back out it stays on.

Some people suggest using plrdistwithin=x instead of plrwithinzone=x
It a matter of personal preference since it is still checking for the condition.
They are both conditions for the state to check.
I have had no problems using plrwithinzone=x



Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 18th Nov 2005 05:29
EDIT

Ooops you wanted it off until they step there.
For that, try this...






Whatever you can imagine, you can animate. --- Walt Disney
All too easy. --- Darth Vader
Just do it! --- Nike
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 18th Nov 2005 10:09 Edited at: 18th Nov 2005 10:09
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 18th Nov 2005 13:07
bullshock, i read that, and imade my first script from it, but i wanted it to be zone activated. thank you C.E. and thjank you bullshock

dont assune cause u make an ass out of u and me
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 18th Nov 2005 23:49
this is really wierd. i did it all right, and the it works, but only when your right under the light.

dont assune cause u make an ass out of u and me
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 19th Nov 2005 02:43


sometimes the trigger zones do that...

like when you spawn something with a trigger, the spawning object has to be within the trigger zone...

flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Nov 2005 03:40
i think your makking fun of me... what i meant was that i had the trigger zone really big, in it were all the lights, and they only flashed when i was under them.

dont assune cause u make an ass out of u and me
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 19th Nov 2005 06:26 Edited at: 19th Nov 2005 06:50
no...i wasnt making fun of you...

and what you are asking is mor than possible...

as a matter of fact, thats all the door script is...

but you can do it with the boolean for of plrwithinzone...like this:



that should work...

when they go into the zone...the light turns on...when they go out

Arness
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: on my computer what do you think?
Posted: 19th Nov 2005 17:18
u put it in notebook format right?

p.s bullshock hows the sword going

Fps creator forever!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
and ever and ever and ever and ever and ever....
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Nov 2005 17:37
do you mean txt? cause if you do, then no. save scripts as .fpi

dont assune cause u make an ass out of u and me

Login to post a reply

Server time is: 2024-11-27 04:03:04
Your offset time is: 2024-11-27 04:03:04