Skip to content

onColShapeHit event isn't fired when an object goes through a colshape via moveObject #3578

@Daniheee

Description

@Daniheee

Describe the bug

Just as the title says, the onColShapeHit event isn't firing. However, this is only happening on the server side. The exact same code on the client side (onColShapeHit -> onClientColShapeHit, of course) works without any problem.

Here you can see it in this video: (Keep your eye on my debugscript) https://streamable.com/4bxng2

The code that i have used in the video:

  • Client side:
setDevelopmentMode(true)

local col = createColCircle(2483,-1673,3)
local obj = createObject(919,2483,-1679,13)
moveObject(obj,2000,2483,-1668,13)

addEventHandler("onClientColShapeHit",col,
    function(element,dim)
        iprint(element,dim,getTickCount())
    end
)
  • Server side:
local col = createColCircle(2483,-1673,3)
local obj = createObject(919,2483,-1679,13)
moveObject(obj,2000,2483,-1668,13)

addEventHandler("onColShapeHit",col,
    function(element,dim)
        iprint(element,dim,getTickCount())
    end
)

Steps to reproduce

  1. Go to the grove street, and use the codes that i have provided in the description, one by one (Try client first, and then the server, not together).

Version

Client: v1.6-release-22606 (Windows 64-bit)
Server: v1.6-release-22606 (Windows 64-bit)

Additional context

No response

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions