GetPlayerAction

When this condition function is run on an actor, it returns the player action, if any, that the actor is reacting to. Player actions are identified using the same numbers as IsPlayerActionActive. If the actor isn't reacting to a player action, then the function returns 0.

Note that this function will print an error message to the console and fail to write a return value in the following cases:

  • It is being run on None.
  • It is not being run on an actor.
  • The actor it is being run on has no AI process.