Jump to content

Getting damage from action attack

Recommended Posts

Two entities with combat components.

Entity A attacks Entity B.

A runs DoAttack.

DoAttack on A calls GetAttacked on B.

DoAttack passes the damage parameter running the CalcDamage function.


Damage gets calculated on hit every time.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...