4
Fork 0
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.
 
 
 

23 lines
689 B

scriptName defaultEquipItemOnLoad extends Actor
{ Causes the actor to equip the specified item(s) on load. }
Weapon property WeaponToEquip Auto
Armor property ArmorToEquip Auto
Light property TorchToEquip Auto
bool property preventRemoval Auto
bool property silent Auto
Event OnLoad()
if (!Self.IsDead() && !Self.IsDisabled())
if (WeaponToEquip != None)
Self.EquipItem(WeaponToEquip, preventRemoval, silent)
EndIf
if (ArmorToEquip != None)
Self.EquipItem(ArmorToEquip, preventRemoval, silent)
EndIf
if (TorchToEquip != None)
Self.EquipItem(TorchToEquip, preventRemoval, silent)
; Debug.Trace("FORCING TORCH: " + Self + " " + preventRemoval)
EndIf
EndIf
EndEvent