38 lines
601 B
Markdown
38 lines
601 B
Markdown
# DeicideUnLook.js — main() (satır 1)
|
||
|
||
[← DeicideUnLook.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function main(c)
|
||
{
|
||
var source = c.getSubject();
|
||
|
||
if (!source)
|
||
{
|
||
return;
|
||
}
|
||
|
||
var result = source.rayTrace(32);
|
||
|
||
if (!result || !result.isEntity())
|
||
{
|
||
return;
|
||
}
|
||
|
||
var target = result.getEntity();
|
||
|
||
if (!target || !target.isPlayer())
|
||
{
|
||
return;
|
||
}
|
||
|
||
if (target.isSame(source))
|
||
{
|
||
return;
|
||
}
|
||
|
||
target.unlockRotation();
|
||
target.unlockPosition();
|
||
}
|
||
```
|