Author Topic: Automatic relay events/brick health  (Read 903 times)

Alright, so from what I've seen of relay events, it seems that if you destroy a projectile, you can fire a relay upward to other bricks and then make them also be fakekilled.

So what I thought would be cool is a mod that detects if a brick is supporting another brick, and if so, it automatically adds the events -

Code: [Select]
OnProjectileHit > Self > fakeKillBrick
OnProjectileHit > fireRelayUp/Down (depending on where it is supporting a brick from)

The above events are for the brick that is supporting another brick.

Code: [Select]
OnRelay > Self > fakeKillBrick
The above events are for the brick being supported.



Now, here is where brick health comes in. Each brick is given 100 health, and the projectile hit event would only register after the health was depleted to zero.

All of this, together, would result in some realistic destruction, instead of destroying an entire build and leaving the baseplates behind.

« Last Edit: December 24, 2012, 06:16:00 PM by Sami2ss »

It would be incredibly laggy
You can't do this, torque simply isn't efficient enough for it

you'll need to toggle off relaying up/down after it's killed, and then toggle it back on when it respawns
otherwise you'll get tons of relay loops making the whole thing flash