Skip to content

Bug: Trigger bounds do not scale properly with AngelScript method SetCollisionBounds() #2342

@310paradox

Description

@310paradox

Describe the bug

When the AngelScript method SetCollisionBounds() is ran on a trigger entity (such as a trigger_multiple), the trigger will only detect anything that is simultaneously within its original bounds and the new bounds set by the method.

Image Image Image

Issue Map

I have created a test map on the workshop here: https://steamcommunity.com/sharedfiles/filedetails/?id=3730903272

below is the code for the ResizeBounds command
sv_init.txt

To Reproduce

to change the size of the trigger's bounds, use the custom command I made called ResizeBounds.
type "ResizeBounds trigger a b c x y z", where a b c are the trigger's mins, and x y z are the trigger's maxs

the trigger will only detect when something is both in its original bounds (marked as the box in blue) and it current bounds (marked as the box in orange) simultaneously.
The cube and the sprite will turn green when the trigger thinks there's something inside of it, and red otherwise.

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions