Jump to content

[Scripting] How come this function does not return a value?


Recommended Posts

Here's a small script whose purpose is to return an animation list from sexlab:

 

Scriptname AnimationPlayerControl extends Quest  

SexLabFramework Property SexLab Auto


function getAnimationsBJ() ;Gets only bj animations from sexlab/slal


    sslBaseAnimation[] anims
    anims = SexLab.GetAnimationsByTag(2, "Blowjob",tagSuppress="Fisting") ;Get all bj animations


	return anims	;Return the list of animations. The compiler fails here

endFunction

 

 

Whenever it is compiled,  it fails with "cannot return a sslbaseanimation[] from getanimationsbj, the function does not return a value" error. Feels like a rookie mistake somewhere, but where exactly?

 

 

 

 

Link to comment
Scriptname AnimationPlayerControl extends Quest  

SexLabFramework Property SexLab Auto

sslBaseAnimation[] function getAnimationsBJ() ;Gets only bj animations from sexlab/slal
  sslBaseAnimation[] anims
  anims = SexLab.GetAnimationsByTag(2, "Blowjob",tagSuppress="Fisting") ;Get all bj animations
  return anims	;Return the list of animations. The compiler fails here
endFunction
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