2019-03-12 19:05:38 -04:00
|
|
|
getTask() Netscript Function
|
|
|
|
=======================================
|
|
|
|
|
|
|
|
.. js:function:: getTask(sleeveNumber)
|
|
|
|
|
2021-03-07 04:37:56 -05:00
|
|
|
:RAM cost: 4 GB
|
|
|
|
|
2019-03-17 22:04:12 -07:00
|
|
|
:param int sleeveNumber: Index of the sleeve to retrieve task from. See :ref:`here <netscript_sleeveapi_referencingaduplicatesleeve>`
|
2019-03-12 19:05:38 -04:00
|
|
|
|
|
|
|
Return the current task that the sleeve is performing. type is set to "Idle" if the sleeve isn't doing anything
|
2021-03-07 04:13:37 -05:00
|
|
|
|
2019-03-12 19:05:38 -04:00
|
|
|
.. code-block:: javascript
|
|
|
|
|
|
|
|
{
|
2019-03-12 19:32:20 -04: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-12 19:05:38 -04:00
|
|
|
}
|