FileExists

From GECK

Revision as of 12:54, 10 February 2017 by Pintocat (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A function added by the Lutana NVSE plugin.

Description

Returns whether or not a file exists in the Data directory or a loaded BSA archive for a given file path. Returns '2' if the file is found within a BSA. You can pass a string_var by using the ToString ($) operator.

Syntax

(int) FileExists filepath:string

Example

set bExists to FileExists "meshes/ammo/10mmammo.nif"

See Also

Personal tools