Author Topic: Event ifTouchAmount  (Read 499 times)

It would help in some situations such as blocking something after 5 people go into a room. Basically the event would work like this.

onPlayerTouch>self>ifTouchAmount [5]
onTouchTrue>self>spawnExplosion [rocketExplosion]

That would make the brick explode after 5 or more people touch it.
The add on should have three events. ifTouchAmount, onTouchTrue and onTouchFalse. I'm not sure if this is possible or if its already possible but I thought it might be cool.

You could probably do this with VCE's onVariableUpdate event, though I haven't tried.

Zone Bricks + VCE
onPlayerEnterZone > Self > VCE_modVariable > playernumber [add] 1
onPlayerLeaveZone > Self > VCE_modVariable > playernumber [minus] 1
onPlayerEnterZone > Self > VCE_ifValue > playernumber [>=] 5 [3 3]
onVariableTrue > Self > spawnExplosion > Rocket Launcher