Difference between revisions of "FileExists"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Gribbleshnibit8
(Created page with "{{Function |origin = LU |summary = 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...")
 
imported>Pintocat
m
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  |name = FileExists
  |name = FileExists
  |returnType = int
  |returnType = int
|referenceType = [RadioEmitter]
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
Line 11: Line 10:
   |Optional = n
   |Optional = n
   }}
   }}
|example = set bExists to FileExists "meshes/ammo/10mmammo.nif"
}}
}}
==See Also==
==See Also==
Line 16: Line 16:
*[[GetFoldersInFolder]]
*[[GetFoldersInFolder]]
[[Category:Functions_(Lutana)]]
[[Category:Functions_(Lutana)]]
[[Category:Radio_Functions_(Lutana)]]
 
[[Category:File_Functions_(Lutana)]]

Latest revision as of 12:54, 10 February 2017

< [[::Category:Functions|Category:Functions]]

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

[help]
(int) FileExists filepath:string

Example

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

See Also