Class GameObject [-] [+]
Represents a game object in the world, such as doors, chests, and other interactive objects.
Inherits all methods from: Object, WorldObject
Methods
| AddLoot |
Adds an Item to the loot of a GameObject Requires an gameobject with loot_template set to 0. |
| Despawn |
Despawns a GameObject |
| GetDisplayId |
Returns display ID of the GameObject |
| GetGoState |
Returns the state of a GameObject Below are client side [GOState]s off of 3.3.5a |
| GetLootRecipient |
Returns the Player that can loot the GameObject |
| GetLootRecipientGroup |
Returns the Group that can loot the GameObject |
| GetLootState |
Returns the [LootState] of a GameObject Below are [LootState]s off of 3.3.5a |
| GetSpawnId |
Returns the spawn ID for this GameObject. |
| HasQuest |
Returns 'true' if the GameObject can give the specified Quest |
| IsActive |
Returns 'true' if the GameObject is active |
| IsSpawned |
Returns 'true' if the GameObject is spawned |
| IsTransport |
Returns 'true' if the GameObject is a transport |
| RemoveFromWorld |
Removes GameObject from the world |
| Respawn |
Respawns a GameObject |
| SaveToDB |
Saves GameObject to the database |
| SetGoState |
Sets the state of a GameObject |
| SetLootState |
Sets the [LootState] of a GameObject Below are [LootState]s off of 3.3.5a |
| SetRespawnDelay |
Sets the respawn or despawn time for the gameobject. |
| SetRespawnTime |
Sets the respawn or despawn time for the gameobject. |
| UseDoorOrButton |
Activates a door or a button/lever |