Using combat styles in scripts

Post » Fri Jan 03, 2014 2:20 pm

Hi,

I am trying to show the current combat style of an actor in the MCM menu but the following line doesn't work:

AddTextOption("$CurrCombatStyle", FeyriaTywele.GetActorBase().GetCombatStyle().GetName())

What do I have to do to make this work?

User avatar
Eilidh Brian
 
Posts: 3504
Joined: Mon Jun 19, 2006 10:45 am

Post » Fri Jan 03, 2014 4:51 am

Spoiler

try:

AddTextOption("$CurrCombatStyle", FeyriaTywele.GetActorBase().(GetCombatStyle() as form).GetName())

Edit: actually, the parentheses are wrong above, sorry - use this instead:

AddTextOption("$CurrCombatStyle", (FeyriaTywele.GetActorBase().GetCombatStyle() as form).GetName())
User avatar
CHangohh BOyy
 
Posts: 3462
Joined: Mon Aug 20, 2007 12:12 pm


Return to V - Skyrim

cron