Workshop.codes
Create

Set Object Collision Last updated June 26, 2025

Description

Enables or disables physical collision on a previously spawned static object. When collision is enabled, players and projectiles are blocked by the object's geometry. When disabled, the object acts as a purely visual element that players and projectiles pass through freely.

Snippet

Set Object Collision(Last Created Object, True);

Properties

Returns: Void
Parameters: Object, Enabled

Object
Type: Object, Default: Last Created Object
The static object whose collision state will be changed.

Enabled
Type: Boolean, Default: True
If True, the object blocks players and projectiles. If False, the object is passable.

Workshop.codes