Difference between revisions of "OnActorAction - Form"

Jump to navigation Jump to search
1 byte removed ,  05:08, 31 July 2013
m
replaced information based on an earlier SKSE version.
imported>CraftySentinel
(Created page with "Category:Scripting Category:Papyrus '''SKSE Member of:''' Form Script Listens for actor actions, for this event to be received the form must have been registered ...")
 
imported>CraftySentinel
m (replaced information based on an earlier SKSE version.)
Line 13: Line 13:
*source - The Weapon or Spell that was used within the action
*source - The Weapon or Spell that was used within the action
*slot - The slot of the source item. Valid Slots:
*slot - The slot of the source item. Valid Slots:
** 0 - Right Hand
** 0 - Left Hand
** 1 - Left Hand
** 1 - Right Hand
** 2 - Voice  
** 2 - Voice  


Line 28: Line 28:
Event OnActorAction(int actionType, Actor akActor, Form source, int slot)
Event OnActorAction(int actionType, Actor akActor, Form source, int slot)
If !source ;Hand to Hand does not have a form of it's own so it will be none.
If !source ;Hand to Hand does not have a form of it's own so it will be none.
If !slot ;Right Hand slot
If !slot ;Left Hand slot
Debug.Trace("The player has swung their left fist.")
Else
Debug.Trace("The player has swung their right fist.")
Debug.Trace("The player has swung their right fist.")
Else
Debug.Trace("The player has swung their left fist.")
EndIf
EndIf
EndIf
EndIf

Navigation menu