Background for Skyrim SE
Member of the ActorBase script

Description

Wiki Description

Get the combat style of this actor. (This function requires SKSE)

Documentation Comment

SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
get/set the CombatStyle of the actor


Caveats

CK Wiki - Notes

  • SKSE does not provide CombatStyle properties as of yet, you may need to use formlists

Examples

FormList Property OneHandList Auto

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
if OneHandList.HasForm(pActorBase.GetCombatStyle())
   Debug.MessageBox("Woaw, player, you're really good with one hand")
endif
FormList Property CombatStyleList Auto
Int Property Onehand = 0 Auto
Int Property TwoHands = 1 Auto
; etc
ActorBase pActorBase = Game.GetPlayer().GetActorBase()

if pActorBase.GetCombatStyle() == (CombatStyleList.GetAt(OneHand) as CombatStyle)
; player's combat style is one hand

elseif pActorBase.GetCombatStyle() == (CombatStyleList.GetAt(TwoHands) as CombatStyle)
; etc...

Auto-Generated Example

CombatStyle returnedValue = myActorBase__toCallFunctionOn.GetCombatStyle()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.