bitburner-src/markdown/bitburner.gang.setmembertask.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

939 B

Home > bitburner > Gang > setMemberTask

Gang.setMemberTask() method

If you are not in BitNode-2, then you must have Source-File 2 in order to use this function.

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”).

Signature:

setMemberTask(memberName: string, taskName: GangTasks): boolean;

Parameters

Parameter Type Description
memberName string Name of Gang member to assign.
taskName GangTasks Task to assign.

Returns:

boolean

True if the Gang Member was successfully assigned to the task, false otherwise.

Remarks

2 GB