Arma 3 Scripting

Command in Object Manipulation

preloadObject

Also available as Markdown and JSON, or read the original wiki page.

Description

Preloads all textures, materials and proxies needed to render given object. Works with objects and classnames - note that classnames require an object instance in the mission.

Syntax

distance preloadObject object

Parameters:

Returns: Boolean - true when preload is finished

Examples

Example 1

0 spawn 
{
    waitUntil { 10 preloadObject "SoldierW" };
    hint "Preload finished";
};

Example 2

0 spawn 
{
    waitUntil { 10 preloadObject leader player };
    hint "Preload finished";
};

See also

preloadCamera · preloadSound · preloadTitleObj · preloadTitleRsc