Files

560 B
Raw Permalink Blame History

KlonlanmaLal.js — createCloneEntity() (satır 182)

← KlonlanmaLal.js · ← Master

function createCloneEntity(c, owner, x, y, z, index) {
    var actorResult = createActorClone(c, owner, x, y, z, index);
    if (actorResult.entity) return actorResult.entity;

    var npcResult = createNpcClone(c, owner, x, y, z, index);
    if (npcResult.entity) return npcResult.entity;

    sendSpawnErrorOnce(owner, "Actor: " + actorResult.error + " | NPC: " + npcResult.error);
    return null;
}