DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetSize()

vector SceneObject::GetSize ( )
inlineprotected

См. определение в файле SceneObject.c строка 143

144 {
145 vector size = Vector(1,1,1);
146 vector min_max[2];
147
148 if (GetObject())
149 {
150 GetObject().GetCollisionBox(min_max);
151
152 size[0] = min_max[1][0] - min_max[0][0];
153 size[2] = min_max[1][2] - min_max[0][2];
154 size[1] = min_max[1][1] - min_max[0][1];
155
156 return size;
157 }
158 else
159 {
160 Print("Error: SceneObject "+ m_ObjectNameOrigin +" dont has game object.");
161 }
162
163 return size;
164 }
EntityAI GetObject()
Определения SceneObject.c:59
string m_ObjectNameOrigin
Определения SceneObject.c:10
proto void Print(void var)
Prints content of variable to console/log.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки GetObject(), m_ObjectNameOrigin, Print() и Vector().

Используется в EditorLineAdd(), EditorShapeAdd() и PluginBase::SelectedObjectFocus().