17 lines
560 B
Markdown
17 lines
560 B
Markdown
# KlonlanmaLal.js — createCloneEntity() (satır 182)
|
||
|
||
[← KlonlanmaLal.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
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;
|
||
}
|
||
```
|