Modding Help Make guns one time use?

Discussion in 'Starbound Modding' started by tGMP, Aug 23, 2021.

  1. tGMP

    tGMP Void-Bound Voyager

    Long story short, I'm making a gun that once it's fired, it's gone, or rather your count of said gun is decreased by one. Any possible way to do that?
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    You can't have the gun "removed" but you can have the gun no longer work - by adding an ammo script into the gun.

    Otherwise, you got to make the gun a consumable item - and have a Lua script create a projectile on using it.

Share This Page