mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-29 17:37:34 +01:00
16 lines
624 B
ReStructuredText
16 lines
624 B
ReStructuredText
place() Netscript Function
|
|
=======================================
|
|
|
|
.. js:function:: place(worldX, worldY, fragmentId)
|
|
|
|
:RAM cost: 5 GB
|
|
:param int worldX: World X against which to align the top left of the fragment.
|
|
:param int worldY: World Y against which to align the top left of the fragment.
|
|
:param int rotation: A number from 0 to 3, the mount of 90 degree turn to take.
|
|
:param int fragmentId: ID of the fragment to place.
|
|
:returns: `true` if the fragment has been placed at that position. `false` otherwise.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
place(0, 4, 17); // returns true |