# Method Global:PerformIngameSpawn [-] [+]

Performs an in-game spawn and returns the Creature or GameObject spawned.

## Synopsis

`worldObject = PerformIngameSpawn( spawnType, entry, mapId, instanceId, x, y, z, o )`

`worldObject = PerformIngameSpawn( spawnType, entry, mapId, instanceId, x, y, z, o, save )`

`worldObject = PerformIngameSpawn( spawnType, entry, mapId, instanceId, x, y, z, o, save, durorresptime )`

`worldObject = PerformIngameSpawn( spawnType, entry, mapId, instanceId, x, y, z, o, save, durorresptime, phase )`

## Arguments

**number**spawnTypeType of object to spawn, 1 = Creature, 2 = GameObject.

*Valid numbers*: integers from -2,147,483,647 to 2,147,483,647.

**number**entryEntry ID of the Creature or GameObject.

*Valid numbers*: integers from 0 to 4,294,967,295.

**number**mapIdMap ID to spawn the Creature or GameObject in.

*Valid numbers*: integers from 0 to 4,294,967,295.

**number**instanceIdInstance ID to put the Creature or GameObject in. Non instance is 0.

*Valid numbers*: integers from 0 to 4,294,967,295.

**number**xX coordinate of the Creature or GameObject.

*Valid numbers*: all decimal numbers.

**number**yY coordinate of the Creature or GameObject.

*Valid numbers*: all decimal numbers.

**number**zZ coordinate of the Creature or GameObject.

*Valid numbers*: all decimal numbers.

**number**oO facing/orientation of the Creature or GameObject.

*Valid numbers*: all decimal numbers.

**boolean**save (false)Optional to save the Creature or GameObject to the database.

**number**durorresptime (0)Despawn time of the Creature if it's not saved or respawn time of GameObject.

*Valid numbers*: integers from 0 to 4,294,967,295.

**number**phase (1)Phase to put the Creature or GameObject in.

*Valid numbers*: integers from 0 to 4,294,967,295.

## Returns

**WorldObject**worldObjectReturns Creature or GameObject.