Modding Discussion Functional Fire Extinguisher?

Discussion in 'Starbound Modding' started by CM981, Jan 7, 2018.

  1. CM981

    CM981 Void-Bound Voyager

    Was thinking this would be cool, sort of like a reverse flamethrower that could be sprayed on flames to put them out and removes burning effect from players and NPCs. Maybe could interact with the decorative item to pick it up and hang it back on the wall as and when it is needed. If anyone is either capable of doing this or knows how I could, let me know?
  2. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    Well, removing the burning effect is easy: simply add an immunity status effect to the burning status effect file and create the burning immunity status effect. ou could have it hang up on the wall via a simple crafting recipe using your hands that uses only the fire extinguisher. For the object, use the protectorate cape object as a template.

    As for removing flames, that would be harder... You might have to find a way using lua to check the projectile name of the projectile that the spray collides with, then do a "if" statement that triggers if the projectile name the spray collides with is a specific projectile (or more than one) and causes both projectiles to despawn. This may not be possible, but it is just an idea of how the issue could be approached.

Share This Page