This commit is contained in:
Olivier Gagnon
2022-01-15 18:39:37 -05:00
parent f1c2dc2693
commit 8b69fd7faa
130 changed files with 3091 additions and 453 deletions
+5 -5
View File
@@ -9,16 +9,16 @@ Get general info about a running script.
<b>Signature:</b>
```typescript
getRunningScript(filename?: string | number, hostname?: string, ...args: (string | number)[]): RunningScript;
getRunningScript(filename?: FilenameOrPID, hostname?: string, ...args: (string | number)[]): RunningScript;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| filename | string \| number | |
| hostname | string | |
| args | (string \| number)\[\] | |
| filename | [FilenameOrPID](./bitburner.filenameorpid.md) | Optional. Filename or PID of the script. |
| hostname | string | Optional. Name of host server the script is running on. |
| args | (string \| number)\[\] | Arguments to identify the script |
<b>Returns:</b>
@@ -30,5 +30,5 @@ info about a running script
RAM cost: 0.3 GB
Running with no args returns curent script.
Running with no args returns curent script. If you use a PID as the first parameter, the hostname and args parameters are unnecessary.