Jump to content

[Solved] Set custom survivor's starting Health


Recommended Posts

So it should look something like this, right?

Quote

 

Inside local master_postinit = function(inst)

   inst.OnNewSpawn = function(inst)
        Health:SetCurrentHealth(150)
    end

 

I might do something wrong, but this coding crashes the game (variable 'Health' is not declared).

What did I missed?

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