engineSetDecals
Client
Sets how many decals (bullet holes, blood, tyre marks) can exist at once and how long they last.
bool engineSetDecals(int limit [, float lifetimeScale = 1])
Parameters
| Name | Type | Description |
|---|---|---|
| limit | int | From 0 to 256. Lowering it removes the decals past the new limit at once. |
| lifetimeScale | float | Multiplies how long each decal lasts, from 0.1 to 4.default 1 |
Returns
true if the setting was applied.
The setting applies to the whole client and stays after the resource stops.
Example
engineSetDecals(64, 0.5)NoteValues outside the limits raise an error.