Looking for info on the NEXUS faction in the game? It's in the Warzone Encyclopaedia
.infiltrate()
- Aubergine
Owned by Aubergine
Infiltrates core systems so that NEXUS can absorb them.
Syntax
// perform all automatic infiltrations var success = NEXUS.infiltrate(); // perform manual infiltration var success = NEXUS.infiltrate(system[,disconnect[,obj]]);
Parameters
Parameter | Mandatory | Type | Notes | NEXUS Version |
---|---|---|---|---|
system | String | If specified, only the specified system will be infiltrated or disconnected based on the "connect" parameter. If not specified, all automatic infiltrations will be performed. | v0.1 | |
connect | Boolean | This parameter only takes effect if a "system" has been specified:
Defaults to true. Note that some systems cannot be disconnected once they have been infiltrated. | ||
obj | This parameter only takes effect if a "system" has been specified, and defines an optional object to pass to the .test() , .connect() or .disconnect() function associated with the system. |
Return value
Value | Type | Notes | NEXUS Version |
---|---|---|---|
true | Boolean | The system was successfully infiltrated. NEXUS will now automatically trigger tasks when the system accessed. | v0.1 and above |
false | Boolean | The infiltration or disconnection was unsuccessful. Possible causes:
| v0.1 and above |
null | Null | No disconnect function was found when trying to disconnect from a system. | v0.1 and above |
undefined | Undefined | The specified system definition was not found. | v0.1 and above |
<error> | Error | Is it a bird? Is it a plane? No, it's an Incoming. Laser. Satellite. Strike. | v0.1 and above |
Example
// perform all automatic infiltrations NEXUS.infiltrate(); // perform specific system infiltration NEXUS.infiltrate("whatever"); // disconnect from specific system NEXUS.infiltrate("whatever",false);
See also
- Infiltrate Subroutines – ready made system definitions
An Infiltrate Subroutine must be installed before you can use this function.
Contents
Assimilate:
API Browser
Observe:
- NEXUS() — The API namespace for NEXUS, that doubles up as a function for triggering tasks.
- .infiltrate() — Infiltrates core systems so that NEXUS can absorb them.
- .suffix() — Determines the appropriate event key suffix based on the passed in object.
- .fn — Defines helper functions available to all NEXUS subroutines (and external scripts).
- .actions
- .classify() — Classifies an object using the installed taxonomy in order to derive an "Object Key".
- .default — Stores various defaults for NEXUS subroutines.