preloadObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added basic description.)
mNo edit summary
Line 25: Line 25:
Preload all textures, materials and proxies needed to render given object. Object can be determined either by config class name, or by object id.
Preload all textures, materials and proxies needed to render given object. Object can be determined either by config class name, or by object id.
Returns true once all data are ready.
Returns true once all data are ready.


'''Example:'''
'''Example:'''

Revision as of 00:21, 18 July 2006


distance preloadObject object


Operand types:

distance: Number

object: String or Object

Type of returned value:

Boolean

Compatibility:

Version 2.40 required.

Description:

Preload all textures, materials and proxies needed to render given object. Object can be determined either by config class name, or by object id. Returns true once all data are ready.


Example:

spawn {waitUntil preloadObject "SoldierW"}

spawn {waitUntil preloadObject leader player}