Blockland Forums > Suggestions & Requests

Onplayerleavebrick

Pages: << < (2/2)

Chrono:


--- Quote from: Lord Pie on August 25, 2009, 11:38:59 PM ---how?

--- End quote ---
Others, including Badspot, have explained it multiple times.
However it only works if all players leave the brick, and the onplayertouch events will only affect the first one on the brick, who is still touching the brick.

If you really need an OnPlayerLeaveBrick, get the zone events, and make a center box with the number being 0.1, then use onPlayerLeaveZone.

Fjeld:


--- Quote from: Lord Pie on August 25, 2009, 11:38:59 PM ---how?

--- End quote ---
A relay always sets it black but when your on it it sets it to red

MtnDew:


--- Quote from: Chrono on August 25, 2009, 11:42:18 PM ---Others, including Badspot, have explained it multiple times.
However it only works if all players leave the brick, and the onplayertouch events will only affect the first one on the brick, who is still touching the brick.

If you really need an OnPlayerLeaveBrick, get the zone events, and make a center box with the number being 0.1, then use onPlayerLeaveZone.

--- End quote ---
Ah hah.

See, we already have something.

black knight:

Well, I was thinking about this when I saw one of those floors that when you walk on it it lights up, but couldnt figure out how to do it, so I thought if I had this it would be much easier.

Space Guy:

[ 0 ] onPlayerTouch -> Self -> cancelEvents
[ 0 ] onPlayerTouch -> Self -> setColor [Red]
[400] onPlayerTouch -> Self -> setColor [Black]

Pages: << < (2/2)

Go to full version