Jump to content

Hooking Animations but Positions empty regardless of actors.


Recommended Posts

Posted

Not sure what I'm missing as I can see the Thread ID as well as detect that the animation has the player.

Event  HandleAnimationEnd(int threadID, bool HasPlayer)	
	if(HasPlayer) ; works fine.
		Debug.Notification( "Thread ID: " + threadID ) ; showing thread ids 0 or 1
		;sslThreadController Thread = SexLab.ThreadSlots.GetController(threadID) ; tried but no results.
		sslThreadController Thread = SexLab.GetController(threadID) ; still no results.
		Actor[] Positions = Thread.Positions
		Debug.Notification("End Actors: " + Thread.Positions.Length) ; debug always shows 0 for length.
		int i = 0
		while i < Positions.Length
			; do sumtin (but nothing happens)
			Debug.Notification(Positions[i].GetLeveledActorBase().GetName())			
			i+=1
		EndWhile			
	EndIf
EndEvent

The script is set to a Blank quest, everything seems to work in terms of registering the hook.  Now if I can just pull the actor list.  Any ideas?  Latest version of Sexlab 1.61.

  • 2 weeks later...
Posted

Very strange, it just suddenly started working after I installed a few other mods.  Which is great, now I can start developing my mod.  I also started a new game so maybe it was the save game didn't update properly while developing. 

Archived

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

  • Recently Browsing   0 members

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