Background for Skyrim SE
Member of the ActorBase script
voidfunctionSetCombatStyle(CombatStylecs)Native

Description

Wiki Description

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


Caveats

CK Wiki - Notes

  • This is a function performed on an ActorBase, meaning all Actors derived from this will have this combat style.
  • SKSE does not provide CombatStyle properties as of yet. You'll have to put the combat style in a FormList, then cast it to a CombatStyle.
  • Combat Styles are locked for the duration of combat, if an Actor is in combat when this is called their combat style will not change.

Parameters

CombatStylecs

CK Wiki Description

the combat style we choose for this actorbase.


Examples

FormList Property List Auto
ActorBase pActorBase = Game.GetPlayer().GetActorBase()
pActorBase.SetCombatStyle(List.GetAt(1) as CombatStyle)

Auto-Generated Example

CombatStyle myCombatStyle__cs

myActorBase__toCallFunctionOn.SetCombatStyle(myCombatStyle__cs)

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.