I am not sure if this is same as OP, but checking status would be great
For example:
check if custom enemy is moving, if so make custom enemy stop
if enemy 5 = move
{
enemy 5 = stop
}
if custom enemy is moving left, then make it move right
if enemy 5 = left
{
enemy 5 = right
}
if player has super jump ability, then stop this ability
if player 1 super jump = true
{
player 1 super jump = false
}