Background for Skyrim SE
Member of the DbSkseFunctions script
voidfunctionExecuteConsoleCommand(stringcommand, ObjectReferenceref=NONE)NativeGlobal

Description

Documentation Comment

differs from consoleUtil.ExecuteCommand in that you can execute a targeted command on a passed in ref.
if ref == none and command is targeted command, runs command on console selected ref like normal.
If no console selected ref, or is not a targeted command, executes command like normal.


Caveats


Parameters

stringcommand

ObjectReferenceref=NONE


Examples

Auto-Generated Example

string myString__command
ObjectReference myObjectReference__ref

DbSkseFunctions.ExecuteConsoleCommand(myString__command, myObjectReference__ref)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.