Returns a value (real or undefined) from the attack grid for the specified attack and index.
Argument | Type | Description |
---|---|---|
attack | :real | The attack to get the value of |
index | :real | The 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;
}