KMGameCommands - Qkrisi/ktanemodkit GitHub Wiki
[DisallowMultipleComponent]
public class KMGameCommands : MonoBehaviour
Directly execute actions related to the game or controlling game flow.
public void StartMission(string id, string seed)
Start a mission with the specified ID and RNG seed (-1 for random)
public void StartMission(KMMission mission, string seed)
Start the specified mission with the specified RNG seed (-1 for random)
public void CauseStrike(string reason)
Issues a strike with the specified reason.
public List<KMBomb> GetBombs()
Get a list of all bombs currently available.
public KMBomb CreateBomb(string missionId, KMGeneratorSetting generatorSettings, GameObject spawnPoint, string seed)
Create a new bomb with the specified mission ID or generator settings, bomb spawn point and RNG seed
public bool RemoveSolvedBomb(KMBomb bomb)
Attempts to remove a solved bomb from play, may fail if bomb not found or only one bomb remaining and not freeplay mode.