GetCombatStyle - ActorBase

Revision as of 08:41, 4 June 2012 by imported>Sagitarius22
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: ActorBase Script

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

SyntaxEdit

CombatStyle Function GetCombatStyle() native

ParametersEdit

None

Return ValueEdit

Returns the ActorBase's combat style

NotesEdit

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

ExamplesEdit

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...

See AlsoEdit