Difference between revisions of "GetInstalledLightPlugins - Game"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:


== Return Value ==
== Return Value ==
*struct Game:PluginInfo
<source lang="papyrus">
*members:
Struct PluginInfo
**int index
int index
**string name
string name
**string author
string author
**string description
string description
EndStruct
</source>


== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; get all loaded light plugins
; get array of installed light plugins
Game:PluginInfo[] Plugins = Game.GetInstalledLightPlugins()
int i = 0
 
while ( i < Plugins.Length )
Debug.Trace("Light Plugin: " + Plugins[i].name + " at index: " + Plugins[i].index+ ":" + i + " is by " + Plugins[i].author)
Debug.Trace("description : " + Plugins[i].description)
i += 1
endwhile


Game:PluginInfo[] installedLightPlugins = Game.GetInstalledLightPlugins()


; Note:
; Note:
; member index will be 0xFE for every installedLightPlugins element returned.
; member index will always be 0xFE.
; (i.e. this function does not work correctly)
; array index = plugin index
</source>
</source>



Latest revision as of 09:32, 13 April 2024

This article has been flagged as incomplete.
Please help improve the wiki by learning how to contribute.

F4SE Member of: Game Script
Requires F4SE version 0.5.0 or higher.

Placeholder Description.

Syntax[edit | edit source]

PluginInfo[] Function GetInstalledLightPlugins() Native Global

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

Struct PluginInfo
	int index
	string name
	string author
	string description
EndStruct

Examples[edit | edit source]

; get array of installed light plugins
Game:PluginInfo[] Plugins = Game.GetInstalledLightPlugins()
int i = 0

while ( i < Plugins.Length )
	Debug.Trace("Light Plugin: " + Plugins[i].name + " at index: " + Plugins[i].index+ ":" + i + " is by " + Plugins[i].author)
	Debug.Trace("description : " + Plugins[i].description)
	i += 1
endwhile


; Note:
; member index will always be 0xFE.
; array index = plugin index

See Also[edit | edit source]