preloadObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| ofpe | 1.00 |game2= arma1 |version2= 1.00 |game3= arma2 |version3= 1.00 |game4= arma2oa |version4= 1.50 |game5= tkoh |version5= 1.00 |game6= arma3 |version6= 0.50 |$1")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 23: Line 23:
| Preloads all textures, materials and proxies needed to render given object. Works with both class names and objects. Returns true once all data is loaded and ready.{{Feature | important | At least one object of the given classname has to be present in the current mission in order for alternative syntax version of the command to have any effect}}
| Preloads all textures, materials and proxies needed to render given object. Works with both class names and objects. Returns true once all data is loaded and ready.{{Feature | important | At least one object of the given classname has to be present in the current mission in order for alternative syntax version of the command to have any effect}}


| distance '''preloadObject''' object
|s1=  distance '''preloadObject''' object


|p1= distance: [[Number]] -  distance at which preload the object
|p1= distance: [[Number]] -  distance at which preload the object

Revision as of 00:23, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
distance preloadObject object
Parameters:
distance: Number - distance at which preload the object
object: Object - existing object
Return Value:
Return value needed

Alternative Syntax

Syntax:
distance preloadObject classname
Parameters:
distance: Number - distance at which preload the object
classname: String - classname of the object
Return Value:
Boolean - true when preload is finished

Examples

Example 1:
[] spawn { waitUntil {10 preloadObject "SoldierW"}; hint "Preload finished"; };
Example 2:
[] spawn { waitUntil {10 preloadObject leader player}; hint "Preload finished"; };

Additional Information

See also:
preloadCamerapreloadSoundpreloadTitleObjpreloadTitleRsc

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