Jump to content

Track SexLab animations


Recommended Posts

Posted

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

 

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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