Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

NpcSpawnOptions

Defined in: shared.d.ts:278

Where NPC.create spawns an NPC, and how.

optional disposition?: "hostile" | "friendly"

Defined in: shared.d.ts:285

Default “hostile” (see npc.setDisposition).


optional preferredOwnerId?: number

Defined in: shared.d.ts:287

The player whose client should run it; the NPC starts in that player’s virtual world and map.


x: number

Defined in: shared.d.ts:279


y: number

Defined in: shared.d.ts:280


optional yaw?: number

Defined in: shared.d.ts:283

Heading in degrees it spawns facing: 0 faces +X, 90 faces +Y. Default 0.


z: number

Defined in: shared.d.ts:281