Hey, I'm wondering if the is a way to use a object's variable in a piece of code. For Example:
Bullet collides with Enemy
Subtract Bullet's damage variable from Enemy's health
Basically, I made all my bullets in one family and made each bullet do different amounts of damage. Is there anyway I can just call the family member that is colliding and use it's damage variable to subtract health from the object it's colliding into?