12 lines
286 B
Plaintext
12 lines
286 B
Plaintext
Scriptname _00E_Func_WaitForRef Hidden
|
|
|
|
Function WaitForReferenceToLoad(ObjectReference ref) Global
|
|
|
|
Int maxIterationsToWait = 180
|
|
While ref.Is3DLoaded() == False && maxIterationsToWait > 0
|
|
; Utility.Wait(0.02)
|
|
maxIterationsToWait -= 1
|
|
EndWhile
|
|
|
|
EndFunction
|