Files

33 lines
521 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Ae.js — getRayEntity() (satır 619)
[← Ae.js](index.md) · [← Master](../../wiki.md)
```javascript
function getRayEntity(player, range)
{
var ray = null;
try
{
ray = player.rayTrace(range);
}
catch (e1) {}
if (!ray) return null;
try
{
if (ray.isEntity && ray.isEntity()) return ray.getEntity();
}
catch (e2) {}
try
{
if (ray.entity) return ray.entity;
}
catch (e3) {}
return null;
}
```