ozziefire Posted February 25, 2012 Share Posted February 25, 2012 (edited) I'm missing something dumb here, I've hit a wall in a clothing swapping script that works fine except for nude bodies, so now I'm throwing it out for anyone else that has an idea how to detect "nothing" is being worn in the UpperBody Slot 2. Code Deleted That's an abreviated version of the code, trouble is when it gets the <no name> as the outfit worn it fails to set the NudeBody, it should catch it at the "rNewUpperBody == 0", apparently 0 isn't the same as whatever <no name> is. SexoutSLOutfitNaked is a formlist of Naked Body Variations, SexoutSLOutfitUnderwear is a similar List of Underwear variations Edited February 26, 2012 by ozziefire Link to comment Share on other sites More sharing options...
luthienanarion Posted February 25, 2012 Share Posted February 25, 2012 To test for an empty slot with GetEqObj, simply test your variable for having a value at all after calling the function. set ref_var to actor_ref.geteqobj 2 if(ref_var) ; Do things. else ; Don't do things, because the slot is empty. endif Link to comment Share on other sites More sharing options...
ozziefire Posted February 25, 2012 Author Share Posted February 25, 2012 (edited) To test for an empty slot with GetEqObj, simply test your variable for having a value at all after calling the function.Thanks, I tried that and it didn't seem to work, but I'll give it another go :)yep got it, it worked, thanks :) Edited February 26, 2012 by ozziefire Link to comment Share on other sites More sharing options...
Recommended Posts