Cluster Creator Kit Script Reference
    Preparing search index...

    Interface RaycastResultItem

    A read-only type describing the result of a raycast.

    interface RaycastResult {
        handle: ItemHandle | PlayerHandle | null;
        hit: Hit;
    }
    Index

    Properties

    Properties

    handle: ItemHandle | PlayerHandle | null

    Returns a handle that describes the object hit, or null.

    If the object hit is an item, returns ItemHandle.
    If the object hit is a player, returns PlayerHandle.
    If the object hit is not an item or a player, returns null.

    Refer Handles in the top page of Script Reference to know how to handle this value.

    hit: Hit

    Describes a hit.