Jump to content

Shared Character Expiration


trombonaught

Recommended Posts

Another multiplayer request, maybe super simple? I'm wanting to bind my party to a shared fate/endgame.

 

I think I have the effect I want (from Snake's Spiffo Skills Mod), but I can't figure out the right event to make it happen.

 

The event would be something like "On player update, if player isdead," then I want this to happen for all online players:

local dmg = ZombRand(5) + 15;

player:getBodyDamage():getBodyPart(BodyPartType.ForeArm_L):AddDamage(dmg);

player:getBodyDamage():getBodyPart(BodyPartType.ForeArm_L):setScratched(true);

player:getBodyDamage():setInfectionLevel(1);

 

So that effectively on player death, all other players become infected. If one player dies they take the party with them!

 

Would anyone be able to make this happen for me or give me some advice?

Edited by trombonaught
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
×
×
  • Create New...