2022-10-21 17:16:00 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2022-11-24 14:19:51 +01:00
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [Sleeve ](./bitburner.sleeve.md ) > [setToBladeburnerAction ](./bitburner.sleeve.settobladeburneraction.md )
2022-10-21 17:16:00 +02:00
2022-11-24 14:19:51 +01:00
## Sleeve.setToBladeburnerAction() method
2022-10-21 17:16:00 +02:00
2023-04-07 13:49:11 +02:00
Set a sleeve to perform Bladeburner actions.
2022-10-21 17:16:00 +02:00
2023-02-11 19:18:50 +01:00
**Signature:**
2022-10-21 17:16:00 +02:00
```typescript
2024-08-17 23:08:55 +02:00
setToBladeburnerAction(
sleeveNumber: number,
action: BladeburnerActionTypeForSleeve | `${BladeburnerActionTypeForSleeve}` ,
contract?: BladeburnerContractName,
): boolean;
2022-10-21 17:16:00 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2023-04-07 13:49:11 +02:00
| sleeveNumber | number | Index of the sleeve to perform a Bladeburner action. |
2024-08-17 23:08:55 +02:00
| action | [BladeburnerActionTypeForSleeve ](./bitburner.bladeburneractiontypeforsleeve.md ) \| \`${[BladeburnerActionTypeForSleeve](./bitburner.bladeburneractiontypeforsleeve.md)<!-- --> }\` | Name of the action to be performed. |
| contract | [BladeburnerContractName ](./bitburner.bladeburnercontractname.md ) | _(Optional)_ Name of the contract if applicable. |
2022-10-21 17:16:00 +02:00
2023-02-11 19:18:50 +01:00
**Returns:**
2022-10-21 17:16:00 +02:00
boolean
2023-04-07 13:49:11 +02:00
True if the sleeve started the given Bladeburner action, false otherwise.
2022-10-21 17:16:00 +02:00
## Remarks
RAM cost: 4 GB
2023-04-07 13:49:11 +02:00
Return a boolean indicating whether or not the sleeve started a Bladeburner action.
2022-10-21 17:16:00 +02:00