Jump to content

script.: can somebody help me with a OnCombatStateChanged script?


Recommended Posts

im making my new follower. kinda she is done. but she refusing to use her unique bound sword.

so i tried to write a script. but the script is not working at all. she still refusing to use her bound sword.

 

Scriptname AuroraFighting extends Actor  
{Aurora's Fighting technics}

SPELL Property AuroraBoundSwordSP Auto
{Event OnCombatStateChanged Actor akTarget, int aeCombatState
if aeCombatState == 1
    AuroraBoundSwordSP.cast self, self
endif
EndEvent}

 

the script is paired up with the spell on her in properties. but somesow its still not working. what can i do? or what im doing wrong? can somebody help?

Link to comment
On 11/22/2021 at 3:19 AM, Weerz said:

im making my new follower. kinda she is done. but she refusing to use her unique bound sword.

so i tried to write a script. but the script is not working at all. she still refusing to use her bound sword.

 

Scriptname AuroraFighting extends Actor  
{Aurora's Fighting technics}

SPELL Property AuroraBoundSwordSP Auto
{Event OnCombatStateChanged Actor akTarget, int aeCombatState
if aeCombatState == 1
    AuroraBoundSwordSP.cast self, self
endif
EndEvent}

 

the script is paired up with the spell on her in properties. but somesow its still not working. what can i do? or what im doing wrong? can somebody help?

 

Maybe try to change this AuroraBoundSwordSP.cast self, self to AuroraBoundSwordSP.cast self, none. My guess is that a summond weapon does not need a target, it only needs the caster, but i could be completely wrong here, just try it. 

Link to comment
7 hours ago, CrymH said:

 

Maybe try to change this AuroraBoundSwordSP.cast self, self to AuroraBoundSwordSP.cast self, none. My guess is that a summond weapon does not need a target, it only needs the caster, but i could be completely wrong here, just try it. 

i managed to solve it since that. it was merely a typo and the act tha the sword wasnt only right hand lol. but as soon as i have set it to right hand only. all worked :P

https://www.nexusmods.com/skyrimspecialedition/mods/58887

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use