Files

511 B
Raw Permalink Blame History

MercanRey5.js — releaseEntity() (satır 109)

← MercanRey5.js · ← Master

function releaseEntity(entity, data)
{
    if (entity == null || !entity.isLivingBase())
    {
        return;
    }

    try
    {
        if (!data.wasPositionLocked)
        {
            entity.unlockPosition();
        }

        if (!data.wasRotationLocked)
        {
            entity.unlockRotation();
        }
    }
    catch (e)
    {}
}