enderalse/source/scripts/_00E_Func_WaitForRef.psc

12 lines
286 B
Plaintext
Raw Normal View History

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