bf6-portal-mod-types
    Preparing search index...

    Function RayCast

    • Request the system to evaluate if a straight line between two points is interrupted or not. Use OnRayCastHit and OnRayCastMissed events to get the result. Note: The events do not provide any data to easily attribute the hit or miss to a specific cast ray.

      Parameters

      • player: Player

        The player to cast the ray from.

      • start: Vector

        The start vector of the ray.

      • stop: Vector

        The stop vector of the ray.

      Returns void

    • Request the system to evaluate if a straight line between two points is interrupted or not. Use OnRayCastHit and OnRayCastMissed events to get the result. Note: The events do not provide any data to easily attribute the hit or miss to a specific cast ray. Note: The OnRayCastHit and OnRayCastMissed events will always provide a player argument, which is likely to be invalid if a ray is cast with this function.

      Parameters

      • start: Vector

        The start vector of the ray.

      • stop: Vector

        The stop vector of the ray.

      Returns void

    • Request the system to evaluate if a straight line between two points is interrupted or not. Use OnRayCastHit and OnRayCastMissed to read the result.

      Parameters

      Returns void

    • Request the system to evaluate if a straight line between two points is interrupted or not. Use OnRayCastHit and OnRayCastMissed to read the result.

      Parameters

      Returns void