Skip to content

Ability to enable/disable custom weapons collisionsΒ #1365

@Brian9221

Description

@Brian9221

Describe the bug
Creating a custom weapon with createWeapon doesn't let you to disable its collisions with setElementCollisionsEnabled or setElementCollidableWith.

To reproduce
crun w = createWeapon("uzi", getElementPosition(localPlayer))
crun setElementCollisionsEnabled(w, false)
crun setElementCollidableWith(w, localPlayer, false)

both collisions functions return false since they don't support weapon elements

crun setWeaponFlags(w, "disable_model", true)

doesn't remove collisions but only the model

Expected behaviour
At least one of the 3 functions above should be useful to disable other elements from colliding with custom made weapons

Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions