IsAllowedToFly

This function returns 0 if any of the following are true:

  • The run-on reference is not an actor.
  • The run-on actor's race isn't flagged as being able to fly.
  • The run-on actor's "Injured" animation graph boolean variable is set to true.
  • The run-on actor's internal "allow flying" state flag is cleared.
  • The run-on actor's internal "flight blocked" state flag is set.
  • The run-on actor has exactly 0 health.

The function returns 1 if none of the above are true.