Yes, DiegoEloko, it's entirely possible to set up the scenario you described using the Needle Engine's networking and spatial trigger systems. When a PlayerPrefab with a Spatial Trigger and a Spatial Trigger Receiver components enters the spatial trigger of another player, the events defined in the Spatial Trigger Receiver can indeed be triggered.
This mechanism allows for interactions between players in a multiplayer room. The key here is to ensure that the Trigger Mask is set correctly (in this case, to Players) so that the trigger specifically responds to other players entering its spatial area.
The use of Spatial Trigger and Spatial Trigger Receiver in a multiplayer context opens up a range of possibilities for gameplay mechanics, such as triggering events or actions when players get close enough to each other, creating zones with specific interactions, and much more.
Just ensure that your multiplayer setup correctly synchronizes the positions and actions of the players across the network, which can be achieved through components like SyncedTransform and SyncedRoom for seamless interaction.
This setup encourages collaborative or competitive gameplay, depending on how you design the triggers and events. Happy developing!
1 messages left
thread_tcGLTjLoqACQKc3WkLII4K8Z
Thanks for your feedback!