preloadObject

From Bohemia Interactive Community
Revision as of 22:17, 17 July 2006 by Suma (talk | contribs) (Added basic description.)
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}