Get training cpu action

This function retrieves the current "CPU Action" setting in practice mode. While not in practice mode, this function will always return the macro.

Syntax
get_training_cpu_action;

Returns
int ("CPU Action" setting) All possible return values: 0 - CPU_STAND 1 - CPU_CROUCH 2 - CPU_JUMP 3 - CPU_RUN 4 - CPU_PARRY 5 - CPU_ROLL 6 - CPU_FIGHT 7 - CPU_EVADE 8 - CPU_CONTROL

Basic
// ai_update.gml // this character will have a red outline when it is a CPU and the CPU Action is set to "Fight" if ( get_training_cpu_action == CPU_FIGHT ) { outline_color = [ 255, 0, 0 ]; } else { outline_color = [ 0, 0, 0 ]; } init_shader;