DoDamage( <health>, <source position>, <attacker>, <inflictor> )
Module: Entity
SP Only
Summary:
Does damage to this entity
Call this on:
<entity> An entity
Example:
tank DoDamage( tank.health + 200, (0,0,0) );
Required Args:
1 : <health> The amount of damage to do
2 : <source position> The position that the damage comes from
Optional Args
1 : <attacker> The entity that dealt the damage (such as an AI or player)
2 : <inflictor> The entity that the damage came from (such as a grenade or turret)