Author Topic: How to make an auto turrent  (Read 525 times)

ok i'm trying to make a automatic turret that when you hit it wit a key it starts firing.  i tried eventing it but it didn't work so plz help me

...try asking this in the scripting forum...maybe someone will answer it there...i really don't know, sorry.

you do mean making a brick (call it A) and a button that when pressed makes brick A fire, right? If so;

1)Create your turret brick, and button brick
2)Name your turret brick, Turret (or whatever you wish to name it)
3)event the button to say;
   
On Activate-->Named Brick-->Fire Projectile-->[][][]
                           Turret             Gun Bullet


That should do it for a turret, but if you want one that tracks the player, you need an Add-On, which im afraid you will need to search for

i mean rapid fire so if u activate it it keeps firing even if u don't activate it


how do u do that.  I know i sound like an idiot but i don't really use events in this way

Oh, if you use OnActivate it's impossible, because you can't fire a relay on a player.

You could use OnPlayerTouch:
OnPlayerTouch    Player   SpawnProjectile...
If you leave the boxes blank it'll fire the way the player is pointing.

yesor do this:

Make a platform and the fire brick, put it onto on active then make the button drop a zombie or vehicle onto the platform, it should keep firing while it falls on it, there though a little bit big, i would do relay's though they are a bit confusing at first...expieriment that's the best way to figure everything out...

ok thnks guys.  I really needed this