GSC reference › Built-in
AreTexturesLoaded()
Built-in (engine)
Server
Check to see if start-of-level textures are loaded - if they're not, the streamer forces a black screen.
Signature
AreTexturesLoaded()
Example (from Treyarch's docs)
while( !areTexturesLoaded() ) { wait(0.05); } Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 676
while(!aretexturesloaded()) - scripts/zm/zm_cosmodrome_lander.gsc, line 667
while(!aretexturesloaded()) - scripts/zm/zm_factory.gsc, line 279
while(!aretexturesloaded()) - scripts/cp/doa/_doa_core.gsc, line 146
while(!aretexturesloaded())
Related built-ins
- IsAssetLoaded()Check whether or not an asset is loaded.
- IsArchetypeLoaded()Returns true if a given archetype is loaded in the level.
- IsNavVolumeLoaded()Checks whether nav volume is loaded
- AreTexturesStreamed()Returns true if this entity's textures are streamed in
- GetAtrLoaded()Return an array of anim tree name loaded onto the server.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).