Register

DonkeyPunch Community Gaming

GAME ON!!! -sTanG

News:

Now you can easily login to DP with Steam, Twitter, Facebook, GitHub, Google+, Reddit, YouTube +++.
Administrator
*****

DirtySanchez

November 11, 2016, 10:40:21 PM
Humanitarian Posts: 932 Humanity: +1337/-420
This nifty piece of code will search your current map for building classnames.
It will output to 2 places.
1. Rpt file
2. Hint Box on screen

Code: [Select]
Array = [];
_checBldgArray = ["Land_HouseV_1L2","Land_HouseV_1t","Land_HouseV_2I","Land_HouseV_2L","Land_HouseV_2T1","Land_HouseV_2T2","Land_HouseV_3I1","Land_HouseV_3I2","Land_HouseV_3I3","Land_HouseV_3I4"];
{
    _bldgObjects = nearestObjects [markerpos "center", [_x], 20000];
    _countBldgs = count(_bldgObjects);
    Array pushback [_x,_countBldgs];
}forEach _checkBldgArray;
diag_log str worldName;
diag_log str (Array);
hint str ([worldName,Array]);


Website: http://DonkeyPunch.INFO  |  Discord: https://discord.me/eXpoch  |  TeamSpeak: ts3.donkeypunch.info


 

Facebook Comments

1337-420