Jump to content
  • 0

Check if all players are dead in a map


Question

Posted

Hi, I would like to create a check to check if all the players in a map (they will be in a party) are dead.

If all players in the party are dead, It will teleport all players back to savepoint.

However, It will do nothing if only one player dies or if is ressurected.

I have already set mapflag so that players can't leave party.

Could anybody assist me?

Thanks!

 

7 answers to this question

Recommended Posts

  • 0
Posted
54 minutes ago, Profile said:

Hi, I would like to create a check to check if all the players in a map (they will be in a party) are dead.

If all players in the party are dead, It will teleport all players back to savepoint.

However, It will do nothing if only one player dies or if is ressurected.

I have already set mapflag so that players can't leave party.

Could anybody assist me?

Thanks!

 

May I Ask if is this running on an instance? :))

  • 0
Posted

Using OnPCDieEvent is possible too.

It will trigger the checking everytime someone dies inside the map, while OnTimer will trigger the checking every XXXX ms.

Btw using getmapusers will return the number of players inside the map, so it will still count dead characters as long as they are inside the map.

  • 0
Posted
22 minutes ago, Technoken said:

Using OnPCDieEvent is possible too.

It will trigger the checking everytime someone dies inside the map, while OnTimer will trigger the checking every XXXX ms.

Btw using getmapusers will return the number of players inside the map, so it will still count dead characters as long as they are inside the map.

Ok, in my case using OnPCDieEvent is the best option.

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...