Jump to content

Track SexLab animations


Recommended Posts

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

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use