#ifndef SOUND_EVENT_NODE_H #define SOUND_EVENT_NODE_H #include "scene/3d/node_3d.h" class SoundEventNode : public Node3D { GDCLASS(SoundEventNode, Node3D); static void _bind_methods(); void ready(); protected: void _notification(int what); public: void trigger_event(); void set_trigger_on_ready(bool value); bool get_trigger_on_ready() const; void set_range(float value); float get_range() const; private: float range{ 20.f }; bool trigger_on_ready{ true }; }; #endif // !SOUND_EVENT_NODE_H