I’m experimenting with classes in Fretta right now and am having some trouble getting some info from the, uh, damage.
The EntityTakeDamage function only activates on taking damage, and I can’t seem to get who is attacking. Like, for example…
Player A attacks Player B. I know how to tell Player B that Player A is attacking them, but how do I tell Player A that they’re attacking Player B? (I know it’s really obvious to Player A, but still)
Also, is there any sort of function that runs when a player attacks another? Not a take damage, but some sort of a ‘deal damage’ thing… or something like that.
I’m having a hard time trying to explain what I mean.