SpawnCustomLargeAsteroid

From Interstellar Rift Wiki
Jump to: navigation, search

Usage

SpawnCustomLargeAsteroid "[system ID/name]" "[ship ID/name]" [duration in ticks (20 ticks per second)] "[JSON describing the resources in the asteroid]"

Where duration is how long the large asteroid will exist. (with a negative value resulting in an infinite lifetime)

Below is an example JSON for a large asteroid with between 100000 and 200000 iron ore ande between 1000 and 2000 gold.

{  
  "minMaxResources":{  
    "RT_IronOre":{  
      "minAmount":100000,
      "maxAmount":200000
    }
  },
  "minMaxRareResources":{  
    "RT_Gold":{  
      "minAmount":1000,
      "maxAmount":2000
    }
  }
}

This JSON is formatted for better readability, but when entering it in a command there cannot be any newlines / enters / returns in the JSON.

See SpawnCustomAsteroidField for an explanation on what resources can be in minMaxResources and minMaxRareResources.