# IScriptEntity.rayTraceBlock [← IScriptEntity](index.md) · [← Master](../../wiki.md) rayTraceBlock(double maxDistance) IScriptRayTrace Ray trace from entity's looking direction (excluding entities).