A_VultureCheck is an action that is used as part of the thinker for the Bird Aircraft Strike Hazard.
MF_NOGRAVITY is removed to cause the actor to fall down, and the actor checks if it has reached the floor, and if so it turns around by 180° and goes to its
SpawnState to restart the BASH's attack pattern again. If however the actor is still moving horizontally, assuming the BASH hasn't crashed into a wall yet, this action will do nothing.
Code – A_VultureCheck
// Function: A_VultureCheck
// Description: If the vulture is stopped, look for a new target
// var1 = unused
// var2 = unused
void A_VultureCheck(mobj_t *actor)
if (LUA_CallAction("A_VultureCheck", actor))
if (actor->momx || actor->momy)
actor->flags &= ~MF_NOGRAVITY; // Fall down
if (actor->z <= actor->floorz)
actor->angle -= ANGLE_180; // turn around