bitburner-src/markdown/bitburner.sleeve.settofactionwork.md

35 lines
993 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Sleeve](./bitburner.sleeve.md) &gt; [setToFactionWork](./bitburner.sleeve.settofactionwork.md)
## Sleeve.setToFactionWork() method
2021-11-03 05:27:21 +01:00
Set a sleeve to work for a faction.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2022-04-13 07:35:35 +02:00
setToFactionWork(sleeveNumber: number, factionName: string, factionWorkType: string): boolean | undefined;
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| sleeveNumber | number | Index of the sleeve to work for the faction. |
2021-11-03 05:27:21 +01:00
| factionName | string | Name of the faction to work for. |
| factionWorkType | string | Name of the action to perform for this faction. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
2022-04-13 07:35:35 +02:00
boolean \| undefined
2021-10-30 18:34:14 +02:00
2022-04-13 07:35:35 +02:00
True if the sleeve started working on this faction, false otherwise, can also throw on errors
2021-10-30 18:34:14 +02:00
## Remarks
2021-10-30 21:46:34 +02:00
RAM cost: 4 GB
2021-10-30 18:34:14 +02:00
2021-11-03 05:27:21 +01:00
Return a boolean indicating whether or not the sleeve started working or this faction.