Cyber Engine Tweaks
Modding
Dictionary
Other
External docs
Other Wikis
Powered By GitBook
CompanionSystem
Documents the CompanionSystem class and its functions.
NOT DOCUMENTED We currently don't have information on how these functions work. They are being documented here for visibility.

Invoking CompanionSystem

To invoke the companion system, use the following Global function:
1
comps = Game.GetCompanionSystem()
Copied!

Sub-functions

DespawnAll

DespawnAll
Info & Usage
1
DespawnAll();
Copied!

DespawnSubcharacter

DespawnSubcharacter
Info & Usage
1
DespawnSubcharacter(recordID : TweakDBID);
Copied!

GetSpawnedEntities

GetSpawnedEntities
Info & Usage
1
GetSpawnedEntities(out entities : array:wref:Entity, optional recordID : TweakDBID);
Copied!

SpawnSubcharacter

SpawnSubcharacter
Info & Usage
1
SpawnSubcharacter(recordID : TweakDBID, offset : Float, offsetDir : Vector3);
Copied!

SpawnSubcharacterOnPosition

SpawnSubcharacterOnPosition
Info & Usage
1
SpawnSubcharacterOnPosition(recordID : TweakDBID, pos : Vector3);
Copied!
Last modified 8mo ago