Difference between revisions of "GetCombatStyle - ActorBase"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Sagitarius22
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ActorBase Script Get the combat style of this actor. (This function requires SKSE) ==...")
 
imported>Sagitarius22
m
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Form Function GetCombatStyle() native
CombatStyle Function GetCombatStyle() native
</source>
</source>


Line 45: Line 45:
== See Also ==
== See Also ==
*[[ActorBase Script]]
*[[ActorBase Script]]
*[[Combat Style]]
*[[SetCombatStyle - ActorBase]]
*[[SetCombatStyle - ActorBase]]
*[[HasForm - FormList]]
*[[GetAt - FormList]]
*[[FormList]]
*[[FormList]]

Latest revision as of 07:41, 4 June 2012

SKSE Member of: ActorBase Script

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

Syntax[edit | edit source]

CombatStyle Function GetCombatStyle() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

Returns the ActorBase's combat style

Notes[edit | edit source]

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

Examples[edit | edit source]

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 Also[edit | edit source]