get_attack_value

Returns a value (real or undefined) from the attack grid for the specified attack and index.

ArgumentTypeDescription
attack:realThe attack to get the value of
index:realThe index of the attack grid to get the value of

Example, called from attack_update.gml:

// gives the character super armor during the final window of the attack:
if (window == get_attack_value( attack, AG_NUM_WINDOWS ) ) {
super_armor = true;
}