# sm.game.setEnableAggro

Enables and disables aggro. If true, player's will be detected as targets.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.game.setEnableAggro( enableAggro )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.game.md#setenableaggro)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `enableAggro` | boolean | The enable state. |
