mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
34 lines
847 B
Markdown
34 lines
847 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Gang](./bitburner.gang.md) > [setMemberTask](./bitburner.gang.setmembertask.md)
|
||
|
|
||
|
## Gang.setMemberTask() method
|
||
|
|
||
|
Set gang member to task.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
setMemberTask(memberName: string, taskName: string): boolean;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| memberName | string | Name of Gang member to assign. |
|
||
|
| taskName | string | Task to assign. |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
boolean
|
||
|
|
||
|
True if the Gang Member was successfully assigned to the task, false otherwise.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 2 GB
|
||
|
|
||
|
Attempts to assign the specified Gang Member to the specified task. If an invalid task is specified, the Gang member will be set to idle (“Unassigned”).
|
||
|
|