Get hitstun formula

Returns the resulting amount of hitstun a player would get if they were hit with the specified stats. Note that hitstun is not hitstop; Hitstun is how long the player remains inactionable after being hit.

Syntax
get_hitstun_formula( damage, kb_adj, kb_mult, hbox_damage, hbox_bkb, hbox_kb_scale );

Returns
int (simlated hitstun value)

Basic
//article1_hit.gml // This simulates hitstun in an article as if it were a player, to be used elsewhere: hitstun = get_hitstun_formula(damage, knockback_adj, 1.0, enemy_hitboxID.damage, enemy_hitboxID.kb_value, enemy_hitboxID.kb_scale);

Advanced
// Advanced code example if necessary. // If another code block is needed, take a look at this one in the Source Editor.