1251 {
1253 array<ConstructionPart> parts =
GetConstruction().GetConstructionParts().GetValueArray();
1254
1255 Man p;
1256
1257 #ifdef SERVER
1258 array<Man> players = new array<Man>;
1260 if (players.Count())
1261 p = players[0];
1262 #else
1264 #endif
1265
1266 foreach (ConstructionPart part : parts)
1267 {
1268 bool excluded = false;
1269 string partName = part.GetPartName();
1270 if (excludes)
1271 {
1272 foreach (string exclude : excludes)
1273 {
1275 {
1276 excluded = true;
1277 break;
1278 }
1279 }
1280 }
1281
1282 if (!excluded)
1283 {
1285 }
1286 }
1287
1289 }
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.