2019-03-03 04:08:54 +01:00
|
|
|
getCurrentAction() Netscript Function
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
.. js:function:: getCurrentAction()
|
2021-03-11 22:48:00 +01:00
|
|
|
|
2021-03-07 10:13:37 +01:00
|
|
|
:RAM cost: 1 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:returns: An object that represents the player's current Bladeburner action.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Result::
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
type: Type of Action
|
|
|
|
name: Name of Action
|
|
|
|
}
|
|
|
|
|
|
|
|
If the player is not performing an action, the function will return an object
|
|
|
|
with the 'type' property set to "Idle".
|
2021-03-12 08:51:56 +01:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
.. code-block:: javascript
|
|
|
|
|
|
|
|
action = bladeburner.getCurrentAction();
|
|
|
|
print(action.type); // "Contracts"
|
|
|
|
print(action.name); // "Tracking"
|