Enderal SE
https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
351 B
12 lines
351 B
Scriptname _00E_Func_WaitForRef Hidden
|
|
|
|
bool Function WaitForReferenceToLoad(ObjectReference ref, int iFramesToWait = 180) Global
|
|
|
|
Int maxIterationsToWait = iFramesToWait
|
|
While ref.Is3DLoaded() == False && maxIterationsToWait > 0
|
|
maxIterationsToWait -= 1
|
|
EndWhile
|
|
|
|
return maxIterationsToWait > 0 || ref.Is3DLoaded()
|
|
|
|
EndFunction
|
|
|