Jump to content

How to revive players via playing an instrument? (abandoned)


Recommended Posts

I mean, looking at my code I see no reason why this shouldn't work.

local function HearSflesh(inst, musician, instrument)
    if inst ~= musician and
        (inst:HasTag("playerghost")) then     
            inst.PushEvent("respawnfromghost", { source = target })
        end
    end

 

I mean, I made an event earlier that caused thunder to strike every entity around me within hearing range, yet this simple code doesn't work what so.
I'm guessing ghosts are handled separately to be immune to just about all ingame entity effects. Is there a way to make this somehow target ghosts?

 

I was hoping to look at the telltale heart coding but that code is absolutely barren. All other methods of resurrection are from haunting items, and I don't want the player to be able to do that. It's supposed to be used to resurrect your allies.

 

Eh, making the instrument requires an animation and the animation is quite buggy. I've decided against it.

Edited by FelixTheJudge
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...