Difference between revisions of "GetPlayerAction"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
DavidJCobb (talk | contribs) (Functionality verified via reverse-engineering.) |
||
Line 1: | Line 1: | ||
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. | |||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |
Latest revision as of 16:24, 12 May 2024
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.