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" }
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.