最新AZ端 意思是他没有你端的bug把 ,我看跟你写的大体一样。
- bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, uint32 phaseMask, float x, float y, float z, float ang, G3D::Quat const& rotation, uint32 animprogress, GOState go_state, uint32 artKit)
- {
- ASSERT(map);
- SetMap(map);
-
- Relocate(x, y, z, ang);
- m_stationaryPosition.Relocate(x, y, z, ang);
- if (!IsPositionValid())
- {
- LOG_ERROR("entities.gameobject", "Gameobject (GUID: {} Entry: {}) not created. Suggested coordinates isn't valid (X: {} Y: {})", guidlow, name_id, x, y);
- return false;
- }
-
- SetPhaseMask(phaseMask, false);
-
- UpdatePositionData();
-
- SetZoneScript();
- if (m_zoneScript)
- {
- name_id = m_zoneScript->GetGameObjectEntry(guidlow, name_id);
- if (!name_id)
- return false;
- }
复制代码
|