Someone92 Posted September 16, 2021 Posted September 16, 2021 Script is attached to a quest, property SexLab is attached to value SexLabQuestFramework. I want to notice a random SexLab animation starting, save the actors, and later act upon the actors when the animation ends. However the script does not seem to notice the anim starting. Spoiler Scriptname SLDDCauseDrainEffect extends Quest SexLabFramework property SexLab auto Spell property DrainHealthSpell01 auto actor ActorVictim actor ActorAggressor Event OnInit() debug.Notification("OnInit detected") RegisterForModEvent("HookAnimationStart", "myHookedEventHandler") EndEvent Event myHookedEventHandler(int tid, bool HasPlayer) debug.Notification("Start detected") sslThreadController Thread = SexLab.GetController(tid) Actor[] Positions = Thread.Positions ;[firstActor, secondActor] int i = 0 while i < 2 if SexLab.IsVictim(tid, Positions[i]) ActorVictim = Positions[i] endif if SexLab.IsAggressor(tid, Positions[i]) ActorAggressor = Positions[i] endif i = i + 1 endWhile debug.Notification("Aggressor is: " + ActorAggressor.GetLeveledActorBase().GetName()) debug.Notification("Victim is: " + ActorVictim.GetLeveledActorBase().GetName()) EndEvent
Recommended Posts
Archived
This topic is now archived and is closed to further replies.