Files

25 lines
562 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.
# Darklord.js — resolveDomainTarget() (satır 2095)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function resolveDomainTarget(c, p, msg)
{
var tail = trim(commandTail(msg || ""));
if (tail.length > 0)
{
var byName = findPlayerLoose(c, tail);
if (byName) return byName;
}
var ray = getRayEntity(p, 32);
if (ray && ray.getName)
{
var rayPlayer = findPlayerLoose(c, ray.getName());
if (rayPlayer) return rayPlayer;
}
return null;
}
```