IWantMyMod Posted November 10, 2018 Share Posted November 10, 2018 Is there some way to check if an actor is in Werewolf form in a script? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 10, 2018 Share Posted November 10, 2018 Both werewolf and vampire lord forms are switches to a different race. Thus a simple check for race is all that is needed. GetRaceExample: If myActor.GetRace() == WerewolfRace ;do something EndIfNow SSE has specific functions / events which can let you know when an actor changes between werewolf / vamp lord and normal. These may or may not be helpful. OnLycanthropyStateChangedSendLycanthropyStateChanged OnVampirismStateChangedSendVampirismStateChanged Link to comment Share on other sites More sharing options...
IWantMyMod Posted November 10, 2018 Author Share Posted November 10, 2018 Thank you. I looked into the "OnLycanthropyStateChanged" and "OnVampirismStateChanged" event. As near as I can tell "OnLycanthropyStateChanged" is triggered by "SendLycanthropyStateChanged". So they are only useful if you use the "Send" functions in your own code or know that other code is going to call them. It looks like I should be able to use OnRaceSwitchComplete() to detect if an actor switches to beast mod but changing to werewolf by calling target.SetRace(WerewolfBeastRace) doesn't seem to trigger that event. I placed this in an ReferenceAlias script. Event OnRaceSwitchComplete() Debug.Trace("ectnTestPlayer - OnRaceSwitchComplete: This actor's race has finished changing to " + GetActorReference().GetRace()) endEvent Nothing shows up in the log even though my player switches to werewolf and back. What am I missing here. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 10, 2018 Share Posted November 10, 2018 Was the quest with the referencealias script already running in your test game? If so, the script change wouldn't take affect. If you're testing on a new game, save that has not seen the mod under construction, or COC from main menu... no idea why it is not working. Link to comment Share on other sites More sharing options...
Recommended Posts