Author Topic: Events  (Read 501 times)

How do you make a missile launcher that fires the same projectiles at the same time? I know it has something to do with relays.

Name several bricks "launcherTurret".

For the switch:
0 [X] onActivate -> NAMED BRICK: <launcherTurret> -> spawnProjectile [{0,30,30}, Gravity Rocket, {0,0,0}, 1.000]

When you press the switch, every brick will launch a Gravity Rocket to the north.

with a relay its:


0 [X] onRelay -> NAMED BRICK: <launcherTurret> -> spawnProjectile [{0,30,30}, Gravity Rocket, {0,0,0}, 1.000]
0 [X] onRelay -> Self-> FireRelay
0 [X] onActivate -> Self -> FireRelay

with a relay its:


0 [X] onRelay -> NAMED BRICK: <launcherTurret> -> spawnProjectile [{0,30,30}, Gravity Rocket, {0,0,0}, 1.000]
0 [X] onRelay -> Self-> FireRelay
0 [X] onActivate -> Self -> FireRelay

ahh!!! spammy time...


0 [X] onActivate -> NAMED BRICK: <launcherTurret> -> spawnProjectile [{0,30,30}, Gravity Rocket, {0,0,0}, 1.000]

quick question, what do those three boxes after the projectile name do?

Those three boxes tell which direction it fires, forward-back, left-right, up-down. (possibly not in that order.)

Those three boxes tell which direction it fires, forward-back, left-right, up-down. (possibly not in that order.)
No those are the ones before the name. The ones after the projectile name are for random variance.


Thanks guys, I really appreciate this. Locking since I have my answer.

Thanks guys, I really appreciate this. Locking since I have my answer.
what? you didn't lock it yet...