amnes Posted September 22, 2011 Share Posted September 22, 2011 Hi all,There are many armor mods for female only, and things go wrong when male characters wear those female armors. Is there any script can detect wearer's gender and prevent a man from wearing female gears? Link to comment Share on other sites More sharing options...
Delikatessen Posted September 22, 2011 Share Posted September 22, 2011 (edited) Yes. Scriptname ExampleSCPT Begin OnEquip if GetPCIsSex Male unequipitem ExampleITEM endif end You place this on the piece of armor for females only. Edited September 22, 2011 by Delikatessen Link to comment Share on other sites More sharing options...
amnes Posted September 22, 2011 Author Share Posted September 22, 2011 Yes. Scriptname ExampleSCPT Begin OnEquip if GetPCIsSex Male unequipitem ExampleITEM endif end You place this on the piece of armor for females only. Thanks for help!II will try it out once I have time.Thanks again. Link to comment Share on other sites More sharing options...
amnes Posted September 24, 2011 Author Share Posted September 24, 2011 Yes. Scriptname ExampleSCPT Begin OnEquip if GetPCIsSex Male unequipitem ExampleITEM endif end You place this on the piece of armor for females only. It works! Thanks a lot.But I am confused that I have to write player.unequipitem instead of unequipitem to make it work.I think player.unequipitem is for PC and unequipitem for NPC, right? Link to comment Share on other sites More sharing options...
Delikatessen Posted September 24, 2011 Share Posted September 24, 2011 Unless you intend to place female-only armor on a male NPC, I assumed you meant the PC, not NPCs. Link to comment Share on other sites More sharing options...
Recommended Posts