mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-25 17:13:47 +01:00
33 lines
762 B
Markdown
33 lines
762 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getFactionEnemies](./bitburner.singularity.getfactionenemies.md)
|
||
|
|
||
|
## Singularity.getFactionEnemies() method
|
||
|
|
||
|
Get a list of enemies of a faction.
|
||
|
|
||
|
**Signature:**
|
||
|
|
||
|
```typescript
|
||
|
getFactionEnemies(faction: string): string[];
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| faction | string | Name of faction. |
|
||
|
|
||
|
**Returns:**
|
||
|
|
||
|
string\[\]
|
||
|
|
||
|
Array containing the names of all enemies of the faction.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 3 GB \* 16/4/1
|
||
|
|
||
|
Returns an array containing the names (as strings) of all factions that are enemies of the specified faction.
|
||
|
|