---
name: "preloadObject"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/preloadObject
revid: 369157
updated: 2024-09-03T10:34:40Z
---

# preloadObject

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

## 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

```sqf
distance preloadObject object
```

**Parameters:**

- `distance`: [Number](../topics/Number.md) -  distance at which preload the object
- `object`: [Object](../topics/Object.md) or [String](../topics/String.md)
  - [Object](../topics/Object.md) - existing object
  - [String](../topics/String.md) - object classname - an object of that type **must** exist in the mission for it to have effect

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when preload is finished

## Examples

### Example 1

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

### Example 2

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

## See also

[preloadCamera](../commands/preloadCamera.md) · [preloadSound](../commands/preloadSound.md) · [preloadTitleObj](../commands/preloadTitleObj.md) · [preloadTitleRsc](../commands/preloadTitleRsc.md)

<sub>Source: [BI Community Wiki — preloadObject](https://community.bistudio.com/wiki/preloadObject) (revision 369157).</sub>
