Finding position type from code (1 Viewer)

colin

Content Creator
Joined
Apr 11, 2016
Hey, I found out the mod I have been building has issues with non-oral positions. Is there a simple way to check the position style from another mod so I can can tell it to ignore certain functions for vaginal/anal positions?
 

sby

Content Creator
Coder
Joined
Sep 11, 2012
if(l.animtools_comm)
{
switch (l.animtools_comm.positiontype)
{
case 0 :
//oral
break;
case 1:
//tit
break;
case 2:
//vaginal
break;
case 3:
//anal
break;
case 4:
//other
break;
default:
break;
}
}
 

Faceless

Content Creator
Joined
Jun 12, 2011
To be pedantic, the default case doesn't actually need a break statement, since by definition it's the last case to be considered, so upon finishing execution leaves the switch block anyway.
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.