1271 {
1273 array<ConstructionPart> parts =
GetConstruction().GetConstructionParts().GetValueArray();
1274
1275 Man p;
1276
1277 #ifdef SERVER
1278 array<Man> players = new array<Man>;
1280 if (players.Count())
1281 p = players[0];
1282 #else
1284 #endif
1285
1286 foreach (ConstructionPart part : parts)
1287 {
1288 bool excluded = false;
1289 string partName = part.GetPartName();
1290 if (excludes)
1291 {
1292 foreach (string exclude : excludes)
1293 {
1295 {
1296 excluded = true;
1297 break;
1298 }
1299 }
1300 }
1301
1302 if (!excluded)
1303 {
1305 }
1306 }
1307
1309 }
proto native World GetWorld()
proto native DayZPlayer GetPlayer()
Construction GetConstruction()
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
proto native void GetPlayerList(out array< Man > players)
proto native CGame GetGame()
bool Contains(string sample)
Returns true if sample is substring of string.