Page 1 of 1

Death Zones

Posted: Thu Jul 23, 2020 2:22 pm
by Red Dog-PG-
I was asked how to warn players about entering a death zone and I thought I had made a post but could not find it. So, here it is:

You can have it so when a player enters a death zone you can give them ample warning to get out of that area

ploop
if ssnarea(player,10) then
ssnaddhp(player,-10)
consol("Player Out Of Mission Area")
wave(EDTV000.wav)
END
endif

Or you can set it up where a player cannot advance until an objective has been completed.

ploop
if ssnarea(player,11) and not event(4) then
ssnaddhp(player,-40)
consol("Misson Goal Not Completed")
wave(EDTV000.wav)
END
endif


You can set the ssnaddhp from - 1 to -100 where -100 is instant death.

Re: Death Zones

Posted: Thu Jul 23, 2020 7:00 pm
by Bubbachuk-PG-
Thanks RD. :D

Re: Death Zones

Posted: Fri Jul 24, 2020 7:58 am
by The Texican-PG-
Thank you

Re: Death Zones

Posted: Fri Jul 24, 2020 9:04 pm
by Country Joe-PG-
Thanks RD.

I've used the removable death zone ploop in my last few maps. Works great.