bitburner-src/doc/source/netscript/bladeburnerapi/switchCity.rst

17 lines
382 B
ReStructuredText
Raw Normal View History

switchCity() Netscript Function
===============================
.. js:function:: switchCity(cityName)
2021-03-11 22:48:00 +01:00
:RAM cost: 4 GB
:param string cityName: Name of city
2021-03-12 08:51:56 +01:00
:returns: ``true`` if successful.
Attempts to switch to the specified city (for Bladeburner only).
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
bladeburner.switchCity("Sector-12"); // returns: true