Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
354 B
15 lines
354 B
3 years ago
|
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
|