Death Zones
Posted: Thu Jul 23, 2020 2:22 pm
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.
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.