preloadObject

From Bohemia Interactive Community
Revision as of 00:21, 18 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


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}