Solved Raycast hit name

Discussion in 'Rust Development' started by cookiecool, Feb 3, 2018.

  1. So I'm trying to get a name of a raycasehit and output it to console. But I don't really work and I cant figure out why.

    Code is

    Code:
    RaycastHit hit;
    if (Physics.Raycast(player.eyes.HeadRay(), out hit, Settings.MaxDistance))
    Puts((hit.GetEntity).name);
    [DOUBLEPOST=1517654810][/DOUBLEPOST]Nvm figured it out figured it out.