Jump to content

Check an actors Werewolf form


IWantMyMod

Recommended Posts

Both werewolf and vampire lord forms are switches to a different race. Thus a simple check for race is all that is needed. GetRace

Example:

If myActor.GetRace() == WerewolfRace
  ;do something
EndIf

Now 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.

OnLycanthropyStateChanged

SendLycanthropyStateChanged

 

OnVampirismStateChanged

SendVampirismStateChanged

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

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