2024-01-09 22:00:18 +00:00
|
|
|
Scriptname _00E_Func_WaitForRef Hidden
|
|
|
|
|
2024-02-25 22:21:01 +00:00
|
|
|
bool Function WaitForReferenceToLoad(ObjectReference ref, int iFramesToWait = 180) Global
|
2024-01-09 22:00:18 +00:00
|
|
|
|
2024-02-25 22:21:01 +00:00
|
|
|
Int maxIterationsToWait = iFramesToWait
|
2024-01-09 22:00:18 +00:00
|
|
|
While ref.Is3DLoaded() == False && maxIterationsToWait > 0
|
|
|
|
maxIterationsToWait -= 1
|
|
|
|
EndWhile
|
2024-02-25 22:21:01 +00:00
|
|
|
|
|
|
|
return maxIterationsToWait > 0 || ref.Is3DLoaded()
|
2024-01-09 22:00:18 +00:00
|
|
|
|
|
|
|
EndFunction
|