set_attack_value

Overwrites a value from the attack grid for the specified attack and index. Default values are always 0.

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

Example, called from jab.gml:

// sets the sprite of a jab attack to a custom sprite named "jab":
set_attack_value( AT_JAB, AG_SPRITE, sprite_get ( "jab" ) );