Nexussux! Posted September 17, 2021 Posted September 17, 2021 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?
Guest Posted September 17, 2021 Posted September 17, 2021 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
Guest Posted September 17, 2021 Posted September 17, 2021 You have to specify the return value type if you want to return a value
Nexussux! Posted September 18, 2021 Author Posted September 18, 2021 17 hours ago, CPU said: You have to specify the return value type if you want to return a value DAMN. This is what I get for getting WAY too used to syntax highlight. Thanks and sorry for the obvious derp question.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.