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

◆ UpdatePathgraphRegionByObject()

void CGame::UpdatePathgraphRegionByObject ( Object object)
inlineprotected

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

1200 {
1201 if ( object )
1202 {
1203 vector pos = object.GetPosition();
1204 vector min_max[2];
1205 float radius = object.ClippingInfo ( min_max );
1206 vector min = Vector ( pos[0] - radius, pos[1], pos[2] - radius );
1207 vector max = Vector ( pos[0] + radius, pos[1], pos[2] + radius );
1208 UpdatePathgraphRegion( min, max );
1209 }
1210 }
proto native void UpdatePathgraphRegion(vector regionMin, vector regionMax)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки UpdatePathgraphRegion() и Vector().

Используется в Land_Underground_Stairs_Exit::OnDoorStateChangedServer().