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 Product Chat / Respawn triggerzone?

Author
Message
virtual studios
15
Years of Service
User Offline
Joined: 4th Dec 2008
Location: somewhere(I don\'t know/care)
Posted: 10th Dec 2008 21:29
Hi there guys,
Please can you help me, I have this script which I have put as the main script for a trigger zone.
It works fine, when the player is in the zone for 5 secs, then they die. Simple. uhhhh... not so actually.
The player dies as I would like them to, but when they start from the checkpoint again, the triggerzone is not working anymore. I have tried deleting the destroy script, changing it to a blank script, and I don't know what to do!!


Please can someone hel me, as I am having an annoying trouble with this.

PS. Script is below




The future is closer than you think
flewster
15
Years of Service
User Offline
Joined: 9th Dec 2008
Location: Toto was from here too!!
Posted: 11th Dec 2008 02:32
I would make it look like this and see if this works.

;Artificial Intelligence Script

;Header

desc = plrinzonestartimeractivateused

;Triggers

:state=0:state=1
:state=1,plrwithinzone=1:state=2
:state=2:timerstart,state=3
:state=3,timergreater=5000:state=4
:state=4:plraddhealth=-500,state=5
:state=5:music=audiobank/Custommusic/Bomb,state=1


;End of Script

I just added for it to return to state 1 after your sound.......that should reset the script trigger to wait for the player again.

Flewster
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 11th Dec 2008 16:15
:plrwithinzone=1:state=1
:plrwithinzone=0:state=0
:state=1:timerstart
:timergreater=5000:setplrhealth=0,sound=$0,timerstart
:state=0:state=0

Why's everyone getting confused? It's a very simple script...

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
flewster
15
Years of Service
User Offline
Joined: 9th Dec 2008
Location: Toto was from here too!!
Posted: 11th Dec 2008 17:00
Because I am brand new at this......thanks......
virtual studios
15
Years of Service
User Offline
Joined: 4th Dec 2008
Location: somewhere(I don\'t know/care)
Posted: 30th Dec 2008 21:11
Welcome to the forums flewster, and also to the wacky world of Fps Creator!!
Here, have a coffee on me, you;ll need it when you get into scripting!!





Virtual Studios

The future is closer than you think

Login to post a reply

Server time is: 2024-10-11 19:28:26
Your offset time is: 2024-10-11 19:28:26