So im whipping together a very simple AI script. The theory is that i will create a path, use 1 generic action to control the enemies, and then use path_set based on the instance of the action to determine what path to take.
I thought possibly something similar to:
if (me == eEnemyOneMdl)
{
path_set(my, "enemy_1");
movement_enabled = 1;
}
else if (me == eEnemyTwoMdl)
{
path_set(my, "enemy_2");
movement_enabled = 1;
}
else
{
// The script jumps here every time.
}
Would i be better storing the string for the path name in string1 or string2 and then using path_set(my, my.string1)?