From 5359c011a08ef2e06ed54104cc16c32868ca88ff Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:08:41 +1000 Subject: docs --- src/core/triggers.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/core/triggers.h (limited to 'src/core') diff --git a/src/core/triggers.h b/src/core/triggers.h new file mode 100644 index 0000000..a9ced17 --- /dev/null +++ b/src/core/triggers.h @@ -0,0 +1,17 @@ +#pragma once +#include "defines.h" + +// Events/signals that get triggered by certain things that happen + +/* +e.g. +collider enters volume (collider) +collider exits volume (collider) + +you could create a custom signal that only triggers when a collider has been inside a volume for 3 seconds +listen for Enter, start timer, if hits 3 -> emit signal. Else, reset state + +Top-level triggers: +level loaded + +*/ \ No newline at end of file -- cgit v1.2.3-70-g09d2