Tasharen Entertainment Forum

Support => Other Packages => Topic started by: lagerzero on March 14, 2014, 01:21:34 PM

Title: SGSK - Enemy ship gun shooting
Post by: lagerzero on March 14, 2014, 01:21:34 PM
Anyone know of a script to make the enemy ship shoot when the ship get close to your Player ship.

I already made a script for the ship to start chasing you when you pass close to it but I'm looking for another behavior to make him shoot.
Title: Re: SGSK - Enemy ship gun shooting
Post by: ArenMook on March 14, 2014, 01:32:09 PM
Firing of weapons happens in the SpaceshipController class, inside the Update() function. SpaceshipController simply calls the "Fire" method on the chosen weapon. All weapons have it.
Title: Re: SGSK - Enemy ship gun shooting
Post by: jannugimes on April 24, 2014, 11:08:33 AM
I had wanting to know this too