Author Topic: Event Help  (Read 642 times)

I want to make a floor with bricks, and if a player's corpse touches a brick, the brick will turn red like bloodstains. What would the events be? I tried many things, but they all didn't work.

....

Onplayertouch>self>changecolor>[select color]

And if you want them to die...

Onplayertouch>player>kill

Thanks, but is there any way for the brick to change color if the player dies while standing on it?

Not unless it's the brick that's killing them.


You can use the VCE...

onPlayerTouch > Self > VCE_ifValue > [<var:player:health>] == [1] [ ]
onVariableTrue > Self > setColor > {Standard 1}

i think all he wants is some advanced gore mod or something. so if you get shot a big spray of blood appears behind you on the wall/floor the bullets were going.

nah, he wants it so when you die, blood appears around you

i would use:
0[500]onplayertouch>self>vce_ifvalue[<var:pl:health>][==][0][1 3]
1[0]onvariabletrue>self>setcolor[red]
2[5000]onvariabletrue>self>setcolor[color]
3[0]onvariablefalse>self>setcolor[color]
4[0]onplayertouch>self>cancelevents

this will make it so it turns red after 0.5 seconds of death, and stay there for 5 seconds or until somebody walks in it

There's one problem with that though.

The VCE dumps the health value when you die.

Maybe if you tested for a null variable it would work.