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 / Conditional Hurt Zone

Author
Message
JonnieR
14
Years of Service
User Offline
Joined: 9th Jul 2010
Location:
Posted: 29th Aug 2010 20:59
I wanted to create a room that could turn into a large hurt zone if the player takes a particular action. In this case The player would flip a switch thatopen up a door to space which would evacuate all the oxygen. So that the room becomes one big hurt zone.

Can you conditionally activate a hurt zome depending upon a players action? Since I am somewhat new I am not sure how to script this or even if it is possible with FPSC.
Brunopark09
14
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 29th Aug 2010 23:15
I think maybe that can be possible with global varialbes, but i'm not sure, anyway, the effect of 0 oxygen would be awesome

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
Nbt
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 30th Aug 2010 00:02 Edited at: 30th Aug 2010 00:26
It can be done pretty easily, you could even have a dynamic light damage the player, or any dynamic entity in the room. Just script it to effect all within the radius of the room size using something like "plraddhealth=-1" etc

A quick edit of the existing "plrhurtinzone.fpi" script like below and applied to a dynamic entity, you now have something you could just spawn into the room when the door closes and it will hurt the player. It also hurts the player faster the closer they get to it.



JonnieR
14
Years of Service
User Offline
Joined: 9th Jul 2010
Location:
Posted: 30th Aug 2010 01:46
Thanks for the reply. I will try that and let you know how it works.

Login to post a reply

Server time is: 2024-11-24 19:37:04
Your offset time is: 2024-11-24 19:37:04