Difference between revisions of "IsAllowedToFly"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SJML Bot
(Bot creating condition functions pages.)
 
imported>DavidJCobb
(disassembly)
 
Line 1: Line 1:
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.


[[Category:Condition Functions]]
[[Category:Condition Functions]]

Latest revision as of 04:30, 22 February 2021

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.