preloadObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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 ([[CfgVehicles]], or by [[Object#Unit|Unit]].  


Returns true once all data is loaded and ready. |= Description
Returns true once all data is loaded and ready. |= Description
Line 13: Line 13:


|
|
*[[Boolean]] <nowiki>=</nowiki> distance '''preloadObject''' [[Object]]|= Syntax
*[[Boolean]] <nowiki>=</nowiki> distance '''preloadObject''' [[Object]]
*[[Boolean]] <nowiki>=</nowiki> distance '''preloadObject''' "Classname"|= Syntax
*[[Boolean]] <nowiki>=</nowiki> distance '''preloadObject''' "Classname"|= Syntax



Revision as of 08:15, 29 August 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Preload all textures, materials and proxies needed to render given object. Object can be determined either by config class name (CfgVehicles, or by Unit. Returns true once all data is loaded and ready.
Groups:
Uncategorised

Syntax

Syntax:
Parameters:
distance: Number
Classname: String
Return Value:
Boolean

Examples

Example 1:
spawn {waitUntil 10 preloadObject "SoldierW"}
Example 2:
spawn {waitUntil 10 preloadObject leader player}

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section