bitburner-src/markdown/bitburner.ns.getscriptram.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

984 B

Home > bitburner > NS > getScriptRam

NS.getScriptRam() method

Returns the amount of RAM required to run the specified script on the target server. Returns 0 if the script does not exist.

Signature:

getScriptRam(script: Script, host?: Host): number;

Parameters

Parameter Type Description
script Script Filename of script. This is case-sensitive.
host Host Host or IP of target server the script is located on. This is optional, If it is not specified then the function will se the current server as the target server.

Returns:

number

Amount of RAM required to run the specified script on the target server, and 0 if the script does not exist.

Remarks

0.1 GB