preloadObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Wrong syntax)
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[spawn]] {[[waitUntil]] 10 preloadObject "SoldierW"}</code>
|x1= <code>[[spawn]] {[[waitUntil]] {10 preloadObject "SoldierW"}<nowiki>}</nowiki></code>
|= Example 1
|= Example 1
|x2= <code>[[spawn]] {[[waitUntil]] 10 preloadObject [[leader]] [[player]]}</code>
|x2= <code>[[spawn]] {[[waitUntil]] {10 preloadObject [[leader]] [[player]]}<nowiki>}</nowiki></code>
|= Example 2
|= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 17:42, 3 December 2008

-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:
Boolean = distance preloadObject object
Parameters:
distance: Number
object: Object or 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