Difference between revisions of "RegisterForActorAction - Form"
Jump to navigation
Jump to search
imported>CraftySentinel (Created page with "Category:Scripting Category:Papyrus '''SKSE Member of:''' Form Script {{WarningBox|This function only registers for actions performed by the player, while it can ...") |
imported>CraftySentinel m (Clarified warning.) |
||
Line 3: | Line 3: | ||
'''SKSE Member of:''' [[Form Script]] | '''SKSE Member of:''' [[Form Script]] | ||
{{WarningBox|This function only registers for actions performed by the player, while it can be used on any form it will always be the | {{WarningBox|This function only registers for actions performed by the player's actor, while it can be used on any form it will always be the player's actor's actions that are being registered.}}<br /> | ||
Registers the calling form to listen for the specified actor action via [[OnActorAction - Form|OnActorAction]]. | Registers the calling form to listen for the specified actor action via [[OnActorAction - Form|OnActorAction]]. | ||
Revision as of 04:49, 31 July 2013
SKSE Member of: Form Script
Registers the calling form to listen for the specified actor action via OnActorAction.
Syntax
Function RegisterForActorAction(int actionType) Native
Examples
RegisterforActorAction(0);Registers the form for Weapon Swings
Notes
- The following actionTypes are valid:
- 0 - Weapon Swing (Melee weapons that are swung including Hand to Hand.)
- 1 - Spell Cast (Spells and staves).
- 2 - Spell Fire (Spells and staves).
- 3 - Voice Cast.
- 4 - Voice Fire.
- 5 - Bow Draw.
- 6 - Bow Release.
- 7 - Draw Begin.
- 8 - Draw End.
- 9 - Sheathe Begin.
- 10 - Sheathe End.