Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy dropped items on death after a delay #89

wants to merge 4 commits into from


Copy link

commented Jun 11, 2019

Project Cards:

  1. Handle Player Death [3]

How to test:

  1. Host a Light and Shadow game
  2. Join the game using one more client instance
  3. Choose one team with each of the players
  4. Give some blocks and prefab items to player 1.
  5. Capture the flag with player 1.
  6. Kill player 1 with player 2.
  7. Collect some dropped items with player 2.
  8. Repeat step 4 to 7 by exchanging player 1 and 2.

Expected outcome:
Items not collected will get destroyed. If it is flag, it will get teleported back to the base. If you collect the item, delay will be removed and it will not be destroyed.

@darshan3 darshan3 added this to In progress in GSOC 2019: Light & Shadows Jun 11, 2019


This comment has been minimized.

Copy link

commented Jun 13, 2019

I can confirm that the delayed item destruction works if the player is killed. However, it does not work if the flag is lost for some other reason, e.g. by getting hit with the activation key 'e'.
Would be great if not every event that leads to loosing the flag would need separate consideration for the delay, but if there'd be a general ItemDropped event or something alike that could be used to introduce the delay with.


This comment has been minimized.

Copy link
Member Author

commented Jun 22, 2019

Closing as an improved method has been implemented by #93!

@darshan3 darshan3 closed this Jun 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.