bitburner-src/doc/source/netscript/sleeveapi/getTask.rst

19 lines
740 B
ReStructuredText
Raw Normal View History

2019-03-13 00:05:38 +01:00
getTask() Netscript Function
=======================================
.. js:function:: getTask(sleeveNumber)
:param int sleeveNumber: Index of the sleeve to retrieve task from. See :ref:`here <netscript_sleeveapi_referencingaduplicatesleeve>`
2019-03-13 00:05:38 +01:00
Return the current task that the sleeve is performing. type is set to "Idle" if the sleeve isn't doing anything
.. code-block:: javascript
{
2019-03-13 00:32:20 +01:00
task: string, // task type
crime: string, // crime currently attempting, if any
location: string, // location of the task, if any
gymStatType: string, // stat being trained at the gym, if any
factionWorkType: string, // faction work type being performed, if any
2019-03-13 00:05:38 +01:00
}