Difference between revisions of "GetFormFromFile - Game"

Jump to navigation Jump to search
13 bytes added ,  00:34, 22 August 2012
m
→‎Examples: Missed crucial change when updating CheckForDLC function.
imported>JustinOther
(Took out guesswork via addition of FormID array)
imported>JustinOther
m (→‎Examples: Missed crucial change when updating CheckForDLC function.)
Line 35: Line 35:
Int[] Property iFormIDArray Auto ; Element 0 is 2048 for Dawnguard's DLC1AurielsBow "Auriel's Bow" [WEAP:02000800], etc.
Int[] Property iFormIDArray Auto ; Element 0 is 2048 for Dawnguard's DLC1AurielsBow "Auriel's Bow" [WEAP:02000800], etc.
String[] Property sDLCArray Auto ; Element 0 is Dawnguard.ESM, etc.
String[] Property sDLCArray Auto ; Element 0 is Dawnguard.ESM, etc.


Function CheckForDLC(Int aiIndex = 0, String asDLCName = "")
Function CheckForDLC(Int aiIndex = 0, String asDLCName = "")
Line 41: Line 40:
While aiIndex > 0
While aiIndex > 0
aiIndex -= 1
aiIndex -= 1
If bDLCArray[aiIndex] != Game.GetFormFromFile(iFormID, sDLCArray[aiIndex])
If bDLCArray[aiIndex] != Game.GetFormFromFile(iFormIDArray[aiIndex], sDLCArray[aiIndex])
bDLCArray[aiIndex] = !bDLCArray[aiIndex]
bDLCArray[aiIndex] = !bDLCArray[aiIndex]
If bDLCArray[aiIndex]
If bDLCArray[aiIndex]
Anonymous user

Navigation menu