---
name: "awake"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "2.08"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/awake
revid: 373886
updated: 2025-06-26T10:58:51Z
---

# awake

*Command · PhysX · Arma 3 v2.08*

Locality: arguments **global** · effect **local**

## Description

Wakes up sleeping PhysX object or puts a PhysX object to sleep. In 2.10 this command can be used on corpses of type `Man` and has no effect on [alive](../commands/alive.md) units. When unit gets killed it goes into ragdoll state for a short while, then the units get frozen and any simulation and collision is removed to save system resources. As a result, corpses do not react to their surrounding any more. Using this command will temporarily re-enable ragdoll state of a corpse to the same state it was when unit died. If this command is used in "enable/disable" sequence on a dead body, it gives the corpse a visible nudge (See example 3).

> [!NOTE]
> This command won't have lasting effect on vehicles as vehicles are actively simulated, but it works rather well on smaller PhysX enabled objects.

## Syntax

```sqf
object awake awake
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - PhysX object or dead unit
- `awake`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to awake the object, [false](../commands/false.md) - to put it to sleep

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
_object awake false;
```

### Example 2

Since 2.10: 

```sqf
_deadUnit awake true;
```

### Example 3

Make corpse react to explosion (since 2.10): 

```sqf
_deadUnit addEventHandler ["Explosion", 
{
    params ["_unit", "_damage"];
    if (_damage < 0.01) exitWith {};
    _unit awake true;
    _unit awake false;
}];
```

## See also

[isAwake](../commands/isAwake.md) · [addTorque](../commands/addTorque.md) · [addForce](../commands/addForce.md) · [vectorModelToWorld](../commands/vectorModelToWorld.md) · [vectorModelToWorldVisual](../commands/vectorModelToWorldVisual.md) · [selectionPosition](../commands/selectionPosition.md)

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