Table of Contents

GetScriptFilename

Description

Get the full path to the current script file.

Function prototype

string GetScriptFilename

Arguments

None.

Return value

A string containing the full path to the current script file.

n empty string is returned if the current script is not being executed from a script file, such as the case when a plugin executes a script via the zscript_Execute function.

Example

echo <GetScriptFilename>

… the output of which is written to the event log by echo as:

C:\Users\Aaron\L3DT\Resources\All versions\Scripts\GetScriptFilename test.zs

Comments

None.