Jump to content

NPC using werebear script to become werewolf is invisible


saintgrimm92

Recommended Posts

I have a boss for a quest that transforms into a werewolf. I copied the entire script of the DLC2 Werebear NPCs, pasted it into a new script, with a few random things added in (set stage on NPC death, transform on combat change also instead of just on hit, etc) put that script on the boss, changed the property to point to 'werewolfchangefx' spell

The boss plays the animation correctly, his model transforms (that's the transition armor I think?), but just when he should be switched to werewolf race, he turns invisible.

EDIT: he still attacks, still has a red dot on the compass but he's just invisible.

Here is a copy of the script. WerewolfChange property is just the WerewolfChangeFX spell; the original script pointed to DLC2werebearchangefx, and the spell/magic effect of both spells are identical. The werebear spell's effect actually uses the werewolftransformvisual script, werewolf casting art, etc, same as the werewolf spell. So I don't understand why it's making him invisible.

EDIT2: Cleaned up the script, removed some code from the original Werebear that's not used by my actor.

 

Spell Property WerewolfChange auto
Quest Property AtmoraQuest Auto
Int Property AtmoraStage Auto


Function Transform()
    ; do nothing by default
EndFunction

Auto State human
    Function Transform()
        GoToState("Wolf")
        StopCombat()
        StopCombatAlarm()
        WerewolfChange.Cast(self)
        ; SetAv("aggression", 3)
        ; SetAv("confidence", 4)
        StartCombat(Game.GetPlayer())
    EndFunction    

    Event OnCombatStateChanged(Actor akTarget, int aeCombatState)
        Transform()
    EndEvent

    Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
        Transform()
    EndEvent
EndState

Event OnDeath(Actor akKiller)
    AtmoraQuest.SetStage(AtmoraStage)
endEvent


 

Edited by saintgrimm92
Link to comment
Share on other sites

  • Recently Browsing   0 members

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