enderalse/scripts/source/_00e_equipfemaleonly.psc

15 lines
354 B
Plaintext
Raw Normal View History

Scriptname _00E_EquipFemaleOnly extends ObjectReference
Event OnEquipped(Actor akActor)
ActorBase WearerBase = akActor.GetBaseObject() as ActorBase
if (WearerBase.GetSex() == GenderInt)
akActor.UnequipItem(self)
Debug.Notification(CannotEquip)
EndIf
EndEvent
int Property GenderInt = 0 Auto ;0 = Male, 1 = Female
String Property CannotEquip Auto