1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Finding position type from code

Discussion in 'Help' started by colin, Jun 26, 2016.

  1. colin

    colin Avid Affiliate Content Creator

    Joined:
    Apr 11, 2016
    Messages:
    59
    Likes Received:
    22
    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?
     
  2. sby

    sby Club Regular Content Creator

    Joined:
    Sep 11, 2012
    Messages:
    1,331
    Likes Received:
    73
    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;
    }
    }
     
  3. colin

    colin Avid Affiliate Content Creator

    Joined:
    Apr 11, 2016
    Messages:
    59
    Likes Received:
    22
    Thank you, that was exactly what I needed.
     
  4. Faceless

    Faceless Club Regular Content Creator

    Joined:
    Jun 12, 2011
    Messages:
    1,118
    Likes Received:
    22
    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.