Take damage

Simply deals damage from a player to a player.

Syntax
take_damage( damaged_player, attacking_player, damage );

Returns
N/A

Examples
//attack_update.gml //heals 5 damage to self: if (attack == AT_NSPECIAL) { if (window == 2 && window_timer == 10) { take_damage( player, -1, -5 ); } }