preloadObject: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " {2,}\}\}" to " }}") |
||
Line 37: | Line 37: | ||
| [[preloadCamera]], [[preloadSound]], [[preloadTitleObj]], [[preloadTitleRsc]] | | [[preloadCamera]], [[preloadSound]], [[preloadTitleObj]], [[preloadTitleRsc]] | ||
}} | }} | ||
Revision as of 00:40, 19 January 2021
Description
- Description:
- 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.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- distance preloadObject object
- Parameters:
- distance: Number - distance at which preload the object
- object: Object - existing object
- Return Value:
- Boolean - true when preload is finished
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
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Object Manipulation
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands