GetCannibal
Jump to navigation
Jump to search
If this function is run on the player, then it checks whether the player is currently cannibalizing another actor; it returns 1.0 if the player is cannibalizing, or 0.0 otherwise. If the function is run on any other reference, it returns 0.0.
Internally, the function checks whether the player is running any AI package of type 38, which is used specifically for cannibalism. When the player cannibalizes another actor, their character model is flagged as "AI-driven:" the player loses control of the character, and the character is forced to execute an AI package (with type 38) that the executable creates at run-time. As GetCurrentAIPackage is capped at 31, GetCannibal is the only way to check for type 38.