Scriptname IED Hidden Int Function GetScriptVersion() global return 12 EndFunction Int Function GetVersion() native global Function AddActorBlock(Actor akActor, string asPlugin) native global Function RemoveActorBlock(Actor akActor, string asPlugin) native global Function Evaluate(Actor akActor) native global Function EvaluateAll() native global Function Reset(Actor akActor) native global Function ResetAll() native global ;; Custom item control functions ; ; asPlugin = your plugin name ; ; asPlugin must be loaded otherwise any call will fail. Do not attempt to register items to other plugins or base/dlc masters. ; ; Items and any settings applied to them persist in the save. You only need to set things up once. ; Items registered to plugins removed mid-save are automatically purged. Bool Function CreateItemActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, Form akForm, bool abIsInventoryForm, string asNode) native global Bool Function CreateItemNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, Form akForm, bool abIsInventoryForm, string asNode) native global Bool Function CreateItemRace(Race akRace, string asPlugin, string asName, bool abIsFemale, Form akForm, bool abIsInventoryForm, string asNode) native global Bool Function DeleteItemActor(Actor akActor, string asPlugin, string asName) native global Bool Function DeleteItemNPC(ActorBase akActorBase, string asPlugin, string asName) native global Bool Function DeleteItemRace(Race akRace, string asPlugin, string asName) native global Bool Function DeleteAllActor(Actor akActor, string asPlugin) native global Bool Function DeleteAllNPC(ActorBase akActorBase, string asPlugin) native global Bool Function DeleteAllRace(Race akRace, string asPlugin) native global Bool Function DeleteAll(string asPlugin) native global Bool Function SetItemEnabledActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemEnabledNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemEnabledRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemFormActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, Form akForm) native global Bool Function SetItemFormNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, Form akForm) native global Bool Function SetItemFormRace(Race akRace, string asPlugin, string asName, bool abIsFemale, Form akForm) native global ; Only takes effect if the entry is flagged as an inventory item Bool Function SetItemModelSwapFormActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, Form akForm) native global Bool Function SetItemModelSwapFormNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, Form akForm) native global Bool Function SetItemModelSwapFormRace(Race akRace, string asPlugin, string asName, bool abIsFemale, Form akForm) native global Bool Function ClearItemModelSwapFormActor(Actor akActor, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemModelSwapFormNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemModelSwapFormRace(Race akRace, string asPlugin, string asName, bool abIsFemale) native global ; Marks this as an inventory item, 3D won't load unless the actor carries it Bool Function SetItemInventoryActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abIsInventoryForm) native global Bool Function SetItemInventoryNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abIsInventoryForm) native global Bool Function SetItemInventoryRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abIsInventoryForm) native global Bool Function SetItemEquipmentModeActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abEquipmentMode, bool abIgnoreRaceEquipTypes, bool abDisableIfEquipped) native global Bool Function SetItemEquipmentModeNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abEquipmentMode, bool abIgnoreRaceEquipTypes, bool abDisableIfEquipped) native global Bool Function SetItemEquipmentModeRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abEquipmentMode, bool abIgnoreRaceEquipTypes, bool abDisableIfEquipped) native global Bool Function SetItemLeftWeaponActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abIsLeftWeapon) native global Bool Function SetItemLeftWeaponNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abIsLeftWeapon) native global Bool Function SetItemLeftWeaponRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abIsLeftWeapon) native global Bool Function SetItemRemoveScabbardActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemRemoveScabbardNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemRemoveScabbardRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemUseWorldModelActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abUseWorldModel) native global Bool Function SetItemUseWorldModelNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abUseWorldModel) native global Bool Function SetItemUseWorldModelRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abUseWorldModel) native global Bool Function SetIgnoreRaceEquipTypesActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abIgnore) native global Bool Function SetIgnoreRaceEquipTypesNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abIgnore) native global Bool Function SetIgnoreRaceEquipTypesRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abIgnore) native global Bool Function SetItemLoadChanceActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abEnable, float afPercentChance) native global Bool Function SetItemLoadChanceNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abEnable, float afPercentChance) native global Bool Function SetItemLoadChanceRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abEnable, float afPercentChance) native global Bool Function SetItemAnimationEnabledActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abEnable) native global Bool Function SetItemAnimationEnabledNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abEnable) native global Bool Function SetItemAnimationEnabledRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abEnable) native global ; Must be switched on with SetItemAnimationEnabled* before it takes effect Bool Function SetItemAnimationSequenceActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, string asSequence) native global Bool Function SetItemAnimationSequenceNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, string asSequence) native global Bool Function SetItemAnimationSequenceRace(Race akRace, string asPlugin, string asName, bool abIsFemale, string asSequence) native global ; Disable weapon animation for the item. Bool Function SetItemWeaponAnimationDisabledActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abDisable) native global Bool Function SetItemWeaponAnimationDisabledNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abDisable) native global Bool Function SetItemWeaponAnimationDisabledRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abDisable) native global ; Define an animation event to be sent to the weapon after it loads (has no effect if weapon animation is disabled) Bool Function SetItemAnimationEventEnabledActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abEnable) native global Bool Function SetItemAnimationEventEnabledNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abEnable) native global Bool Function SetItemAnimationEventEnabledRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abEnable) native global ; Must be switched on with SetItemAnimationEventEnabled* before it takes effect Bool Function SetItemAnimationEventActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, string asAnimationEvent) native global Bool Function SetItemAnimationEventNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, string asAnimationEvent) native global Bool Function SetItemAnimationEventRace(Race akRace, string asPlugin, string asName, bool abIsFemale, string asAnimationEvent) native global Bool Function SetItemDisableHavokActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abDisable) native global Bool Function SetItemDisableHavokNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abDisable) native global Bool Function SetItemDisableHavokRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abDisable) native global Bool Function SetItemRemoveTracersActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abRemove) native global Bool Function SetItemRemoveTracersNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abRemove) native global Bool Function SetItemRemoveTracersRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abRemove) native global Bool Function SetItemAttachLightActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemAttachLightNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemAttachLightRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemLightTargetSelfActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemLightTargetSelfNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemLightTargetSelfRace(Race akRace, string asPlugin, string asName, bool abIsFemale, bool abSwitch) native global Bool Function SetItemCountRangeActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, int aiMin, int aiMax) native global Bool Function SetItemCountRangeNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, int aiMin, int aiMax) native global Bool Function SetItemCountRangeRace(Race akRace, string asPlugin, string asName, bool abIsFemale, int aiMin, int aiMax) native global ; An attempt to set a managed node when in parent attachment mode will fail and return false Bool Function SetItemNodeActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, string asNode) native global Bool Function SetItemNodeNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, string asNode) native global Bool Function SetItemNodeRace(Race akRace, string asPlugin, string asName, bool abIsFemale, string asNode) native global ; aiAttachmentMode: 0 = reference, 1 = parent ; ; An attempt to set parent mode when a managed node is also set will fail and return false Bool Function SetItemAttachmentModeActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, int aiAttachmentMode, bool abSyncReference) native global Bool Function SetItemAttachmentModeNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, int aiAttachmentMode, bool abSyncReference) native global Bool Function SetItemAttachmentModeRace(Race akRace, string asPlugin, string asName, bool abIsFemale, int aiAttachmentMode, bool abSyncReference) native global ; arPosition: 3 element float array (X, Y, Z), clamped to +-5000 Bool Function SetItemPositionActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, float[] arPosition) native global Bool Function SetItemPositionNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, float[] arPosition) native global Bool Function SetItemPositionRace(Race akRace, string asPlugin, string asName, bool abIsFemale, float[] arPosition) native global ; arRotation: 3 element float array (Pitch, Roll, Yaw) in degrees, clamped to +-360 Bool Function SetItemRotationActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, float[] arRotation) native global Bool Function SetItemRotationNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, float[] arRotation) native global Bool Function SetItemRotationRace(Race akRace, string asPlugin, string asName, bool abIsFemale, float[] arRotation) native global ; clamped to 0.01 - 100 Bool Function SetItemScaleActor(Actor akActor, string asPlugin, string asName, bool abIsFemale, float afScale) native global Bool Function SetItemScaleNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale, float afScale) native global Bool Function SetItemScaleRace(Race akRace, string asPlugin, string asName, bool abIsFemale, float afScale) native global Bool Function ClearItemPositionActor(Actor akActor, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemPositionNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemPositionRace(Race akRace, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemRotationActor(Actor akActor, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemRotationNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemRotationRace(Race akRace, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemScaleActor(Actor akActor, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemScaleNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale) native global Bool Function ClearItemScaleRace(Race akRace, string asPlugin, string asName, bool abIsFemale) native global Bool Function ItemExistsActor(Actor akActor, string asPlugin, string asName) native global Bool Function ItemExistsNPC(ActorBase akActorBase, string asPlugin, string asName) native global Bool Function ItemExistsRace(Race akRace, string asPlugin, string asName) native global Bool Function ItemEnabledActor(Actor akActor, string asPlugin, string asName, bool abIsFemale) native global Bool Function ItemEnabledNPC(ActorBase akActorBase, string asPlugin, string asName, bool abIsFemale) native global Bool Function ItemEnabledRace(Race akRace, string asPlugin, string asName, bool abIsFemale) native global ;; Equipment slot functions ; ; Slot ids: ; ; 1h sword = 0 ; 1h sword left = 1 ; 1h axe = 2 ; 1h axe left = 3 ; 2h sword = 4 ; 2h sword left = 5 ; 2h axe = 6 ; 2h axe left = 7 ; dagger = 8 ; dagger left = 9 ; mace = 10 ; mace left = 11 ; staff = 12 ; staff left = 13 ; bow = 14 ; crossbow = 15 ; shield = 16 ; torch = 17 ; ammo = 18 ; ; Returns form displayed in aiSlot or None if empty or hidden Form Function GetSlottedForm(Actor akActor, int aiSlot) native global ;; Misc Form Function GetLastEquippedForm(Actor akActor, int aiBipedSlot, bool abTrackedActor, bool abIgnoreIfOccupied) native global