blackhornet here's what I'm trying to do and I can't figure it out.
I made a function called SubtractHealth. Param 0 picks the enemy, param 1 is the amount of health to subtract and param 2 chooses a new animation frame for the enemy sprite.
My events in the function look like this:
Set enemyUID to Function.Param(0)
Subtract Function.Param(1) from Health
Set animation frame to Function.Param(2)
I'm calling the function like this:
"SubtractHealth" (enemy.UID, 5, 3) which works well.
But, my issue is that in some cases I don't want to change the animation frame. So I'm trying to call the same function like this:
"SubtractHealth" (enemy.UID, 5) which is giving me all sorts of problems. I'm not sure how to call it properly.
EDIT: Just as an aside, I'm using "SubtractHealth" (enemy.UID, 5, enemy.AnimationFrame) as a workaround for this specific example, but I have several other different functions with a similar situation so I'm trying to figure out the correct way to do it, not the workaround way.