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 spawnType

Type of object to spawn, 1 = Creature, 2 = GameObject.

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

number entry

Entry ID of the Creature or GameObject.

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

number mapId

Map ID to spawn the Creature or GameObject in.

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

number instanceId

Instance ID to put the Creature or GameObject in. Non instance is 0.

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

number x

X coordinate of the Creature or GameObject.

Valid numbers: all decimal numbers.

number y

Y coordinate of the Creature or GameObject.

Valid numbers: all decimal numbers.

number z

Z coordinate of the Creature or GameObject.

Valid numbers: all decimal numbers.

number o

O 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 worldObject

Returns Creature or GameObject.

Generated on
©2016 - Eluna Lua Engine