mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [isBusy](./bitburner.singularity.isbusy.md)
|
|
|
|
## Singularity.isBusy() method
|
|
|
|
Check if the player is busy.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
isBusy(): boolean;
|
|
```
|
|
**Returns:**
|
|
|
|
boolean
|
|
|
|
True if the player is currently performing an action, false otherwise.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.5 GB \* 16/4/1
|
|
|
|
Returns a boolean indicating if the player is currently performing an action. These actions include:
|
|
|
|
- Studying at a university
|
|
|
|
- Working out at a gym
|
|
|
|
- Working for a company/faction
|
|
|
|
- Creating a program
|
|
|
|
- Committing a crime
|
|
|
|
- Grafting an augmentation
|
|
|
|
Note:
|
|
|
|
- This function returns true when the UI is showing the infiltration UI or the BitVerse.
|
|
|
|
- This function does not take Bladeburner actions into account. You can use [getCurrentAction](./bitburner.bladeburner.getcurrentaction.md) to check if you are performing a Bladeburner action.
|
|
|