Jump to content

Compiling script can't get Gender


Eryneth

Recommended Posts

Posted

I know that there is a thread with this exact same issue but I cannot resolve this.

 

I'm trying to compile ssxRunner.psc and am getting the error "GetGender is not a function or does not exist"

 

I've made sure that every source file i can get is available in sources and I've checked specifically that the sexlabframework that defines the function is there and available.

 

Can anyone help me with this, I've been butting my head against it for hours now.

Posted

Sorry, yes that would probably help.

 

I figured out what the issue was, the GetGender was on CreatureFramework not Sexlab as i had originally thought, chasing my tail whilst the answer was right there.

 

int Function calculateSex(Actor a)
	if !a
		return -1
	endIf
	if genderMode==0
		return a.getLeveledActorBase().getSex()
	endIf
	int s = SexLab.getGender(a)
	if s > 1 && CF
		return CF.GetGender(a) - 1
	else
		return Math.LogicalAnd(s, 1)
	endIf
EndFunction

 

Archived

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

  • Recently Browsing   0 members

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