214 {
216 return;
217
220
222 {
223 array<vector> polygonVectors = {};
224 foreach (PlayerRestrictedAreaInstance area :
m_Data.m_ValidatedAreas)
225 {
226 foreach (array<ref array<float>> polygonData : area.
PRAPolygons)
227 {
228 vector first;
229 vector current;
230 vector last;
231
232 foreach (array<float> vertexPos : polygonData)
233 {
234 polygonVectors.Insert(
Vector(vertexPos[0],
GetGame().SurfaceY(vertexPos[0],vertexPos[1]) + 2,vertexPos[1]));
235 }
236
237 int count = polygonVectors.Count();
238 for (int i = 0; i < count; ++i)
239 {
240 current = polygonVectors[i];
241
242 if (i == 0)
243 first = polygonVectors[i];
244 else
246
247 last = current;
248 }
249
251
252 polygonVectors.Clear();
253 }
254 }
255 }
257 {
259 {
260 item.Destroy();
261 }
262
264 }
265 }
static bool IsInitialized()
static ref CfgPlayerRestrictedAreaJsonData m_Data
ref array< Shape > m_DbgShapesPolygonLines
ref array< ref array< ref array< float > > > PRAPolygons
3D, not used directly!
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.