One of the Long Range attacks from the Boss is a thrown rock.
The first task is to create the thing which will be 'thrown'. This involves making a projectile blueprint, which is one with the Projectile Movement properties.
This also contains a mesh to represent the projectile and some code to communicate damage to the player when a hit is detected.
The code in the Enemy will spawn the projectile on the enemy so that the projectile is facing the player, then the projectile code takes over and it goes flying at the player!
This is good to know for things like bullets, rockets, etc. but also these could be helpful things like a helper NPC throwing powerups or health at the player.

No comments:
Post a Comment