Hello once again,
I am trying to write a player damage script whereas each time the player receives a certain amount of damage The post effect motionsickness runs for a few seconds THen when the players health is below say 150 it's a constant motionsickness until a health pack is found. Here is what I have come up with so far. But it doesn't quite work right and it seems it should be easier than this script.
:state=0,plrwithinzone=1:etimerstart,state=1
:state=1,plrhealthless=499:setposteffect=motionsickness,state=4
:state=4,etimergreater=7000:setposteffect=none,State=4
:State=5,plrhealthless=399:setposteffect=motionsickness,etimerstart,state=8
:state=8,etimergreater=7000:setposteffect=none,state=12
:state=12,plrhealthless=300:setposteffect=motionsickness,etimerstart,state=14
:state=14,etimergreater=7000:setposteffect=none,state=18
:state=18,plrhealthless=200:setpostefect=motionsickness,etimerstart,state=22
:state=22,etimergreater=7000:setposteffect=none,etimerstart,state=24
:STATE=24,PLRHEALTHLESS=150:SETPOSTEFFECT=MOTIONSICKNESS,STATE=1
I also tried a shot damage script and that didnt work either
:state=0,plrwithinzone=1:etimerstart,state=2
:state=2,shotdamage=1:setposteffect=motionsicknes,state=4
:state=4,etimergreater=3000:setposteffect=none,state=2