|
Anvil
|
Standard and Low Level methods and properties for querying/interacting with the NwScript virtual machine. More...
Inheritance diagram for Anvil.API.VirtualMachine:
Collaboration diagram for Anvil.API.VirtualMachine:Public Member Functions | |
| void | Execute (string scriptName, NwObject? target, params(string ParamName, string ParamValue)[] scriptParams) |
| Executes the specified NWN script. If scriptName does not specify a compiled script, nothing happens. | |
| void | Execute (string scriptName, params(string ParamName, string ParamValue)[] scriptParams) |
| Executes the specified NWN script. If scriptName does not specify a compiled script, nothing happens. | |
| void | ExecuteInScriptContext (System.Action action, uint objectId=NwObject.Invalid, int scriptEventId=0) |
| T | ExecuteInScriptContext< T > (System.Func< T > action, uint objectId=NwObject.Invalid, int scriptEventId=0) |
| string? | GetCurrentScriptName (int depth=0) |
| Gets the name of the currently executing script. If depth is > 0, it will return the name of the script that called this one via ExecuteScript(). | |
Standard and Low Level methods and properties for querying/interacting with the NwScript virtual machine.
|
inline |
Gets the name of the currently executing script.
If depth is > 0, it will return the name of the script that called this one via ExecuteScript().
| depth | depth to seek the executing script. |