added a really basic enemy script

for the enemy i added a really basic script that would apply forces from the engines to get it to point towards whatever ship its hostile towards. it will track the target and allign itself to the direction. pointing either towards or away from its target, when it gets a certain distance away from the target it will allign itself back towards the target.

for the weapon controls im looping through all the parts with a delay between each, then im moving a collider to a random position around the ship if it the collider overlaps something not attached to the ship then it will add it as a target for that part allowing it to shoot at it.

Leave a comment

Log in with to leave a comment.