转至内容
商品 Distance Based Event Trigger 的媒体 1

描述

Demo | Documentation | Discord

If there are any issues, questions or technical assistance, please let me know, I'll respond as soon as possible.

Example video with component enabled / disabled

Update History (updated 3/23/2025)

------

  • Manually trigger events based on distance to the Player Character.

  • A Character Component triggers events on actors as they get close or far from the Player Character.

  • The events are triggered only once: outside and inside the radius levels around the Character.

  • It doesn't run every Tick.

------

  • Used in most cases to increase performance. As actors get far away you can manually change the tick interval or disable tick entirely.

  • It's recommended to use only in situations where gameplay isn't affected when adjusting the tick interval.

  • It's not limited to adjusting tick intervals, can be used with any gameplay logic. This component only fires the events.

------

  • The project includes functionality so events are triggered as actors get close or far from the Player Character, with the goal of gaining performance from actors that are too far away from the Character. The logic that happens after the events are triggered inside other actors depends entirely on the user, although the project includes some examples.

  • Also, keep in mind that by adjusting their tick interval, the gameplay experience can change in some situations, for example, when using actors synchronously, some of them won't update at the same time because their tick interval changed at some point.

------

Attribution (CC0):

  1. "Hypnotic Chill" (https://opengameart.org/content/hypnotic-chill-extended-4-minute-mix) by cynicmusic is dedicated to the public domain under CC0

  2. "Footsteps On Cloth" (https://freesound.org/people/MikeFozzy98/sounds/670108/) by MikeFozzy98 is dedicated to the public domain under CC0

  3. "Jump Landing Sound" (https://opengameart.org/content/jump-landing-sound) by MentalSanityOff is dedicated to the public domain under CC0

  4. "UI Sound 2" (https://opengameart.org/content/ui-sounds-0) by HaelDB is dedicated to the public domain under CC0

  5. "Numbers models" (https://opengameart.org/content/numbers-model) by abhinav789singh is dedicated to the public domain under CC0

包含格式