I tried coding a script that makes it look as if the player is hit when the player is wearing armour. But I am getting bugs. Can you please take a look and see what is wrong with it. It is fairly simple.
:state=0,plralive=1:dimvar=A,dimlocalvar=X,state=1
:state=0,plralive=0:state=0
:state=1:setvar=A $ARM,state=2
:state=2,varless=$ARM A:etimerstart,state=3,camshake=5
:state=2,varequal=A $ARM:state=2
:state=3:setvarrnd=X 2,state=4
:state=4,etimergreater=100,varequal=X 0:camfov=5,plrsound=audiobank\Downloaded\Gamemaster Audio - Bullet Impact Sounds\bullet_impact_body_thump_02.wav
:state=4,etimergreater=100,varequal=X 1:camfov=5,plrsound=audiobank\Downloaded\Gamemaster Audio - Bullet Impact Sounds\bullet_flyby_fast_05.wav
:state=4,etimergreater=100,varequal=X 2:camfov=5,plrsound=audiobank\Downloaded\Gamemaster Audio - Bullet Impact Sounds\hurt2.wav
:state=4,etimergreater=150:state=1,camshake=0,camfov=0