Core/Entities: Created factory methods to create new areatriggers, creatures and gameobjects
This commit is contained in:
@@ -143,8 +143,8 @@ namespace Scripts.Northrend.Nexus.EyeOfEternity
|
||||
// There is no other way afaik...
|
||||
void SpawnGameObject(uint entry, Position pos)
|
||||
{
|
||||
GameObject go = new GameObject();
|
||||
if (go.Create(entry, instance, pos, Quaternion.WAxis, 255, GameObjectState.Ready))
|
||||
GameObject go = GameObject.CreateGameObject(entry, instance, pos, Quaternion.WAxis, 255, GameObjectState.Ready);
|
||||
if (go)
|
||||
instance.AddToMap(go);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user