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

◆ GetCollisionBoxData()

void GetCollisionBoxData ( string part_name,
out vector min_max[2] )
protected

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

1126 {
1127 string main_part_name = GetConstructionPart( part_name ).GetMainPartName();
1128 string cfg_path = "cfgVehicles" + " " + GetParent().GetType() + " "+ "Construction" + " " + main_part_name + " " + part_name + " " + "collision_data";
1129 ref array<string> collision_data = new array<string>;
1130 GetGame().ConfigGetTextArray( cfg_path, collision_data );
1131
1132 if ( collision_data.Count() > 0 )
1133 {
1134 if ( GetParent().MemoryPointExists( collision_data[0] ) )
1135 {
1136 min_max[0] = GetParent().GetMemoryPointPos( collision_data[0] );
1137 }
1138 if ( GetParent().MemoryPointExists( collision_data[1] ) )
1139 {
1140 min_max[1] = GetParent().GetMemoryPointPos( collision_data[1] );
1141 }
1142 }
1143 }
ConstructionPart GetConstructionPart(string part_name)
Определения Construction.c:280
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
string GetMainPartName()
Определения ConstructionPart.c:35
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
BaseBuildingBase GetParent()
Get parent of the Effect.
Определения Construction.c:40

Перекрестные ссылки CGame::ConfigGetTextArray(), GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName() и GetParent().

Используется в IsColliding() и IsCollidingEx().