nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

Unusable clientside triggers #979

Closed Timmy-the-nobody closed 9 months ago

Timmy-the-nobody commented 10 months ago

Prerequisites

Your Environment

Description

When spawned clientside, Trigger overlap events aren't triggered (no puns intended) No matter if the entity colliding with the trigger bounds was spawned on the client or the server

Steps to reproduce the behavior

Player.Subscribe("Possess", function(self, character)
    if (self ~= Client.GetLocalPlayer()) then return end

    local sphere_trigger = Trigger(Vector(), Rotator(), Vector(1000), TriggerType.Sphere, true, Color(1, 0, 0))
    sphere_trigger:AttachTo(character)

    sphere_trigger:Subscribe("BeginOverlap", function(trigger, actor_triggering)
        Console.Log("Something entered my Sphere Trigger")
    end)
end)

Expected behavior

Should work the same as serverside

Actual behavior

The trigger is here, but the events are never dispatched

gtnardy commented 9 months ago

Thanks for reporting, fixed it!