Jump to content

SendAnimationevent not triggering, need help getting a script to work


Recommended Posts

Posted

Hi, I had wanted to make a mod that edits Sexlab's sslActorAlias file to make dicks get/stay flaccid if the actor is considered a victim, without having to use console commands for every stage.

Put right underneath the "SOSFastErect" AnimationEvent, in the "Prepare" state block:

 

Spoiler
 Debug.SendAnimationEvent(ActorRef, "SOSFastErect")
            Debug.Notification("PP gets hard, hooray!")
            If IsVictim == True
                Debug.SendAnimationEvent(ActorRef, "SOSFlaccid")
                Debug.Notification("PP gets soft, oh noes!")
            Endif

 

 

It compiles, yet I can't get it to work in-game. PC just pops a boner anyway, but none of the debug notifications I put there for testing show up. The sae console commands work, but I'm getting an "The event was not processed by the graph" error. I'm using TNG.

I'm still rather clueless about scripting and completely clueless about behavior graphs, but will look into if these maybe need to be edited to achieve what I want?
I'd be very grateful if anyone with more experience sees this and could point me in the right direction, because I'm rather lost. Please and thank you. 🙏

Posted

mmm editing SexLab scripts is not necessarily the way I'd go about it (definitely backup your scripts first!), but if it's just for something that you wanna see if it works, I'd make sending the erection event conditional:

If !IsVictim 
  Debug.SendAnimationEvent(ActorRef, "SOSFastErect")
  Debug.Notification("PP gets hard, hooray!")
Else
  Debug.Notification("PP gets soft, oh noes!")
Endif 
Posted

@Taki17 First of all thanks for replying! What would be a good way to go about it then?

Also I hadn't tried making the erection conditional yet like in your example, but doesn't work either.

Posted (edited)
15 hours ago, NevieStics said:

The sae console commands work, but I'm getting an "The event was not processed by the graph" error.

 

So, does sae make the actor erect or not? Error indicates the task was not successful, thus what you're saying here is "it works but it doesn't work".

 

15 hours ago, NevieStics said:

It compiles, yet I can't get it to work in-game. PC just pops a boner anyway, but none of the debug notifications I put there for testing show up.

 

Seems kind of obvious then that you didn't put the code in the correct place. If debug messages are never printed, code execution never got to them.

 

Also, the next problem you'll encounter is that mods like SLA will also send erection events. You'd have to block the ones that are sent while your mod is expecting to be overriding it.

Edited by traison
Posted
5 hours ago, traison said:

So, does sae make the actor erect or not? Error indicates the task was not successful, thus what you're saying here is "it works but it doesn't work".

 

@traison Sorry, I should've been clearer. sae makes the actor erect or flaccid as they should. But for some reason I'm still getting that error message each time I execute it.

5 hours ago, traison said:

Seems kind of obvious then that you didn't put the code in the correct place. If debug messages are never printed, code execution never got to them.

 

You underestimate my density.

Jokes aside, turns out I did in fact put the code in the wrong place. Putting it further down, at the moment where animations start and erections actually happen has the anim events play and debug notifs are printed.

Now the actor pops a boner and immediately goes down if he's a victim for every stage. Not exactly what I wanted but it's a good start I guess. Consensual scenes has them erect throughout as intended.

 

5 hours ago, traison said:

Also, the next problem you'll encounter is that mods like SLA will also send erection events. You'd have to block the ones that are sent while your mod is expecting to be overriding it.

 

Another one of those things that seem very obvious but I didn't catch up on haha. Thanks for pointing that out. And thank you for your help, much appreciated.

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