Modding Help where is the action "water" defined?

Discussion in 'Starbound Modding' started by FormalRiceFarmr, Dec 19, 2013.

  1. FormalRiceFarmr

    FormalRiceFarmr Big Damn Hero

    I'm playing with custom projectiles and noticed the "lavaballoon" has an action of "water" and I can't for the life of me find where this is defined. How does the game know what "water" means? when I change it to any of the other named liquids the game crashes.

    Code:
    {
      "projectileName" : "lavaballoon",
      "physics" : "grenade",
      "frames" : "lavaballoon.png",
      "level" : 3,
      "animationCycle" : 0.5,
      "frameNumber" : 2,
    
      "actionOnReap" : [ { "action" : "water" } ],
      "damageKind" : "default"
    }
     
  2. Pilchenstein

    Pilchenstein Ketchup Robot

    The lava balloon is unfinished then I guess, since that will spawn water, not lava. To make it spawn lava, I think you'd do this:
    Code:
    {
    "projectileName" : "lavaballoon",
    "physics" : "grenade",
    "frames" : "lavaballoon.png",
    "level" : 3,
    "animationCycle" : 0.5,
    "frameNumber" : 2,
    
    "actionOnReap" : [ { "action" : "water", "liquidId" : 3 } ],
    "damageKind" : "default"
    }
    
    Where "liquidId" is taken from the "assets\liquids.config" file. The action should probably have been named "liquid" rather than "water" to avoid confusion, but there you go.
     
    tomslucky7 and FormalRiceFarmr like this.
  3. tomslucky7

    tomslucky7 Void-Bound Voyager

    Thanks mate!!! works like a charm
     

Share This Page