Difference between revisions of "IsModLoaded"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Arthmoor
(Syntax not about quotation marks, added example use.)
 
Line 3: Line 3:
'''Syntax:'''
'''Syntax:'''
(isLoaded:bool) IsModLoaded modName:string
(isLoaded:bool) IsModLoaded modName:string
Returns 1 if the specified .esp or .esm is currently loaded. String is case-insensitive but must include the file extension.
Returns 1 if the specified .esp or .esm is currently loaded. String is case-insensitive but must include the file extension. The mod name must be enclosed in quotation marks.

'''Example:'''
Set mod to IsModLoaded "example.esp"


[[Category:Functions]]
[[Category:Functions]]

Latest revision as of 18:40, 31 August 2009

A command for Oblivion Script Extender

Syntax:

(isLoaded:bool) IsModLoaded modName:string

Returns 1 if the specified .esp or .esm is currently loaded. String is case-insensitive but must include the file extension. The mod name must be enclosed in quotation marks.

Example:

Set mod to IsModLoaded "example.esp"