preloadObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (This is stub only.)
(Added basic description.)
Line 4: Line 4:




<h2 style="color:#000066">''' preloadObject '''</h2>
<h2 style="color:#000066">''' distance preloadObject object '''</h2>




'''Operand types:'''
'''Operand types:'''


None
distance: [[Number]]
 
object: [[String]] or [[Object]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 15: Line 17:
[[Boolean]]
[[Boolean]]


{{stub-scripting-command}}
'''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 unit|leader]] [[player]]}

Revision as of 21:17, 17 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}