Skip to content

EntityReady

Narta Xaymar Dirks edited this page Oct 29, 2026 · 3 revisions
BlitzLLVM

EntityReady 〔BlitzLLVM〕

EntityReady:Int32 entity:Int32
Parameter Mode Type Default Description
entity In Int32 required The entity to ask about.

Returns: 1 if the entity is loaded, and 0 if it is still loading or does not exist.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Says whether a model is completely loaded, without waiting for it. With AsyncLoading on, LoadMesh and LoadAnimMesh return an entity right away while the file is parsed on another thread, and this is 1 once the model is built and all of its textures are loaded. Calling it also builds the model when its parsing is done, so a loop that waits for it costs nothing. Without asynchronous loading every entity is ready as soon as it exists, so this is always 1, and it is 1 for every entity that did not come from a model file. Using the entity, for example with PositionEntity, CountChildren or RenderWorld, never needs this call: it waits for the loading by itself.

This is a BlitzLLVM extension: the originals have no asynchronous loading.

Related Commands

EntityAlpha, EntityAutoFade, EntityBlend, EntityClass, EntityColor, EntityDepthFade 〔BlitzLLVM〕, EntityDistance, EntityFX

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally