Compare commits
3 Commits
b410dd4e62
...
a29d0c534d
Author | SHA1 | Date |
---|---|---|
Eddoursul | a29d0c534d | 3 months ago |
Eddoursul | 24343b657e | 3 months ago |
Eddoursul | d49e423ce5 | 3 months ago |
7 changed files with 25 additions and 24 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,11 +1,12 @@ |
||||
Scriptname _00E_Func_WaitForRef Hidden |
||||
|
||||
Function WaitForReferenceToLoad(ObjectReference ref) Global |
||||
bool Function WaitForReferenceToLoad(ObjectReference ref, int iFramesToWait = 180) Global |
||||
|
||||
Int maxIterationsToWait = 180 |
||||
Int maxIterationsToWait = iFramesToWait |
||||
While ref.Is3DLoaded() == False && maxIterationsToWait > 0 |
||||
; Utility.Wait(0.02) |
||||
maxIterationsToWait -= 1 |
||||
EndWhile |
||||
|
||||
return maxIterationsToWait > 0 || ref.Is3DLoaded() |
||||
|
||||
EndFunction |
||||
|
Loading…
Reference in new issue