bitburner-src/markdown/bitburner.sleeve.gettask.md
Olivier Gagnon feb0430aff work on doc
2021-10-30 15:46:34 -04:00

853 B
Raw Blame History

Home > bitburner > Sleeve > getTask

Sleeve.getTask() method

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

Return the current task that the sleeve is performing. type is set to “Idle” if the sleeve isnt doing anything.

Signature:

getTask(sleeveNumber: number): SleeveTask;

Parameters

Parameter Type Description
sleeveNumber number Index of the sleeve to retrieve task from.

Returns:

SleeveTask

Object containing information the current task that the sleeve is performing.

Remarks

RAM cost: 4 GB