511 B
511 B
MercanRey5.js — releaseEntity() (satır 109)
function releaseEntity(entity, data)
{
if (entity == null || !entity.isLivingBase())
{
return;
}
try
{
if (!data.wasPositionLocked)
{
entity.unlockPosition();
}
if (!data.wasRotationLocked)
{
entity.unlockRotation();
}
}
catch (e)
{}
}