Modding Help Make something happen when the player dies.

Discussion in 'Starbound Modding' started by Epicbo, Dec 10, 2013.

  1. Epicbo

    Epicbo Void-Bound Voyager

    I've been searching for a similar thread but I couldn't find one. I'd like to make something happen when the player dies, but every other thread just talks about how to add new recipes or at best how to make something happen when you interact with an object.
    But how do you deal with events such as the player dies? Does anyone know?
     
  2. necKros

    necKros Space Hobo

    I could be wrong, but player death is hardcoded, and I doubt there's a straight forward way to work around this. Maybe you can constantly monitor player health through a script and trigger something throught that, but that would be tricky at best. What kind of event are you planning anyway?
     
  3. kieve

    kieve Intergalactic Tourist

    Only way I could imagine doing it right now, in the current api:
    Create a wire object that scans for the player entity. If it detects the health dropping to a certain point, do something.That said, this object would be limited in what it could actually do if it detected a player getting killed. I don't even know if it would detect it. See /assets/wire/motiondetector for an example of scanning for stuff.
     

Share This Page