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

◆ UpdatePathgraphRegionByObject()

void CGame::UpdatePathgraphRegionByObject ( Object object)
inlineprotected

См. определение в файле Global/game.c строка 1254

1255 {
1256 if ( object )
1257 {
1258 vector pos = object.GetPosition();
1259 vector min_max[2];
1260 float radius = object.ClippingInfo ( min_max );
1261 vector min = Vector ( pos[0] - radius, pos[1], pos[2] - radius );
1262 vector max = Vector ( pos[0] + radius, pos[1], pos[2] + radius );
1263 UpdatePathgraphRegion( min, max );
1264 }
1265 }
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().