sp0ckrates Posted July 1, 2014 Share Posted July 1, 2014 If you do want to know, look me up at the Steam workshop. I got it working the mod Lycans vs Vampires. Just leave a comment there. Link to comment Share on other sites More sharing options...
JWGamimg75 Posted March 14, 2018 Share Posted March 14, 2018 @sp0ckratesEither of you got this working? 4 years later? HEHEI know it's been a LONG TIME since this article but I'm wanting to do a similar thing here.I have an NPC/Follower who is a Redguard.In the Actor's papyrus script box I added the script below (based on the script mentioned in this topic).I want him/her to be able to transform into a werewolf when at a certain level of health.Once combat is complete, and he feels safe OR when he's been a werewolf for 3 minutes I would like him/her to morph back to his original race, ie. Redguard.I used the original script on this post for an NPC I created -- it worked for the most part however, he seems to remain as a werewolf. He will talk and you can have dialog with him -- while he's in werewolf mode. I would travel to places and he would still remain a werewolf. Any help would be appreciated! So this is what I have:Although the properties are set to auto, the aforementioned results are due to me setting the following properties manually: SPELL Property = WerewolfChangeFXActor Property = with Pick reference in render window I chose my NPC in the object window.WerewolfChangeFX = Pick Object is set to WerewolfBeastRace Scriptname CREATENAMEHERE extends ObjectReference SPELL Property WerewolfChangeFX Auto Actor Property actorproperty Auto race property raceyouwant auto Event OnCombatStateChanged(Actor akTarget, int aeCombatState) if (aeCombatState == 0) actorproperty.setrace(raceyouwant) unregisterforupdate() elseif (aeCombatState == 1) registerforupdate(3.0) endif endevent event onupdate() float ActorHealth2 = actorproperty.GetAV("health") if actorhealth2 <= 200 werewolfchangefx.cast(actorproperty) unregisterforupdate() endif endevent Link to comment Share on other sites More sharing options...
Recommended Posts