306 {
307 Land_WarheadStorage_Main closestBunker;
309 if (closestBunker)
310 return closestBunker;
311
312 float smallestDist = float.MAX;
314
316 return null;
317
318 foreach (Land_WarheadStorage_Main bunker:
m_Bunkers)
319 {
320 float dist = vector.DistanceSq(bunker.GetPosition(),thisPos);
321 if (dist < smallestDist)
322 {
323 closestBunker = bunker;
324 smallestDist =dist;
325 }
326 }
327
329 {
331
334 }
335
337
338 return closestBunker;
339 }
void SetPowerServer(bool hasPower)
static ref map< Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main > m_BunkerStationMap
PowerGeneratorStatic m_PowerGenerator
static ref set< Land_WarheadStorage_Main > m_Bunkers
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition