Background for Skyrim SE
Member of the DbMiscFunctions script
voidfunctionAttachPapyrusScript(stringakScript, ObjectReferenceRef)Global

Description

Documentation Comment

Attach the akScript to the Ref.
Mostly for LE as on SE you can use the No Esp mod instead
if ref == none, attachs akScript to the player
requires skse and consoleUtil or DbSkseFunctions.
DbSkseFunctions (included with this mod) only works on SE and AE


Caveats


Parameters

stringakScript

ObjectReferenceRef


Examples

Auto-Generated Example

string myString__akScript
ObjectReference myObjectReference__Ref

DbMiscFunctions.AttachPapyrusScript(myString__akScript, myObjectReference__Ref)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.