preloadObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:
'''Operand types:'''
'''Operand types:'''


distance: [[Number]]  
'''distance:''' [[Number]]  


object: [[String]] or [[Object]]
'''object:''' [[String]] or [[Object]]


'''Type of returned value:'''
'''Type of returned value:'''

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}