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 script with buttton

Author
Message
funny
16
Years of Service
User Offline
Joined: 28th Jul 2007
Location:
Posted: 12th Sep 2007 16:26
An alarm script : if u're in zone a flashlight and sound start, just search an activate button for stop it !
Thanks to bobyones for complète my script.

;Artificial Intelligence Script
;Header
desc = Alarm zone create by funnny modified by bobyones

;Triggers

:state=0,activated=0,plrdistwithin=100:state=1,setframe=0
:state=0,activated=1:state=12

:state=1:sound=audiobank\atmos\alarmhum.wav,timerstart,state=2
:state=2,timergreater=750:state=3

:state=3:LightRange=300,LightRed=255,LightGreen=100,LightBlue=90,timerstart,state=4
:state=4,timergreater=300:state=5

:state=5:LightRange=300,LightRed=255,LightGreen=90,LightBlue=80,timerstart,state=6
:state=6,timergreater=250:state=7

:state=7:LightRange=400,LightRed=255,LightGreen=70,LightBlue=60,timerstart,state=8
:state=8,timergreater=100:state=9

:state=9,activated=1:state=12
:state=9,activated=0:state=1

:state=12:Lightoff=1,suspend

;End of Script

Okey : put dynamic light in zone, put this script on mainscript, put a button, at 'if used' => Light (or name of the dynamic light)
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 12th Sep 2007 16:37
Nice script and works well. Thanks for sharing.

Best.

I'm sorry, my answers are limited. You must ask the right question.

pigs can fly
17
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 12th Sep 2007 19:46
Thanks

PCF Killer&Slaughter Machines Pack in progress
AMD Sempron 2,0Ghz - Windows XP Home - ATI All-in-Wonder X800XT 256mb - 1024mb RAM - using Photoshop and Milkshape
pigs_can_fly.hot.lu/pcf
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 15th Sep 2007 23:08
funny,

Very nice.

Thanks,

Seth Black


Own It, Or Get Owned...
funny
16
Years of Service
User Offline
Joined: 28th Jul 2007
Location:
Posted: 16th Sep 2007 13:51
And U can use a switch code with this ...
=> If u tape correct code the alarm stop it.

funny

Login to post a reply

Server time is: 2024-05-08 22:26:05
Your offset time is: 2024-05-08 22:26:05