Skip to content

InteractableItem

Creates a new set of item components that is set to act like an interactable item, like the C4 or the Decoy.

NameTypeDefaultDescription
componentsItemComponentsThe additional data to provide.
allowThrowbooleanIf true, the item can be deployed by throwing it.
allowPlantbooleanIf true, the item can be deployed by planting it on a wall.
onThrow(interactable: Types.Prop, participant: Types.Participant) -> ()?The function to run when the item is thrown.
onPlant(interactable: Types.Prop, raycastResult: RaycastResult, weldConstraint: WeldConstraint, participant: Types.Participant) -> ()?The function to run when the item is planted.

Type: ItemComponents