Creep Posted November 2, 2014 Report Share Posted November 2, 2014 Hey Guys, I wanted to create a screenshot of the best Loot positions ingame, mainly the trashpiles are important for building materials So I have been playing around in editor, but I couldnt get my functions to work :S They should create a marker on every trashpile Maybe you can tell me whats wrong with them, or how to execute them besides from console, if thats the issue: _number = 0; _Trash = nearestObjects [player, ["Land_JunkPile_F","Land_Sack_F","Land_Sacks_goods_F","Land_GarbageBags_F","Land_GarbagePallet_F"], 5000]; { _number = _number + 1; _markername = format ["%1_%2", typeOf _x, _number]; _marker = createMarkerLocal [_markername, position _x]; _marker setMarkerShapeLocal "ICON"; _marker setMarkerTypeLocal "mil_dot"; _marker setMarkerColorLocal "ColorGreen"; } forEach _Trash; OR: _Trash = getMarkerPos "realtor" nearObjects ["Land_GarbageBags_F", 5000]; { _bla = createMarkerLocal [str(_x),getPos _x]; _bla setMarkerType "Select"; } forEach _Trash; Thanks alot, Creep jonselfphoto, Bushwick, ispan55 and 2 others 5 Link to comment Share on other sites More sharing options...
shamE12 Posted November 2, 2014 Report Share Posted November 2, 2014 SOMEONE HELP THIS MAN I NEED THIS jonselfphoto and Dafteris 2 Link to comment Share on other sites More sharing options...
Nic Posted November 2, 2014 Report Share Posted November 2, 2014 Might want to post this in another forum in the scripting section. But, if you get it to work please share. Link to comment Share on other sites More sharing options...
Creep Posted November 2, 2014 Author Report Share Posted November 2, 2014 Unfortunately the Arma 3 section hasnt got one, so I felt this to be the right place :S anyways, I am trying to finish this today, gonna try to add it to an external script rather than to the debug console Link to comment Share on other sites More sharing options...
Creep Posted November 2, 2014 Author Report Share Posted November 2, 2014 I also tried using the createMarker instead of the Local one now.. didnt work out either Link to comment Share on other sites More sharing options...
vbawol Posted November 2, 2014 Report Share Posted November 2, 2014 This section is ok for now. The trash is going to be very intensive to find as they do not have classes are must be detected with nearestObjects [player, [], 50] Here you go took a few minutes JohnyMST, Creep, TerryFox and 12 others 15 Link to comment Share on other sites More sharing options...
ToejaM Posted November 2, 2014 Report Share Posted November 2, 2014 Nice, posted this on my forum also :-) Link to comment Share on other sites More sharing options...
Creep Posted November 2, 2014 Author Report Share Posted November 2, 2014 Nice, are these already only trashpiles or all objects as the command states ? Link to comment Share on other sites More sharing options...
vbawol Posted November 2, 2014 Report Share Posted November 2, 2014 Nice, are these already only trashpiles or all objects as the command states ? These dots are only our lootable trash objects. Creep 1 Link to comment Share on other sites More sharing options...
=BRC=Shep Posted November 2, 2014 Report Share Posted November 2, 2014 Thanks this will be a lot help to the lone wolves who roam the wilderness looking for scrap metal Link to comment Share on other sites More sharing options...
TheHermit Posted November 3, 2014 Report Share Posted November 3, 2014 This is garbage! cring0, Sequisha, KPABATOK and 4 others 7 Link to comment Share on other sites More sharing options...
Chief Posted November 3, 2014 Report Share Posted November 3, 2014 I believe that map basically tells you to go into towns. Still not entirely sure what you were trying to work on creep. I mean trash is everywhere go find it. I play lone wolf and you are just as likely to get shot in ifestonia as pygros LOL. Link to comment Share on other sites More sharing options...
Creep Posted November 3, 2014 Author Report Share Posted November 3, 2014 If you ever wondered, there are spots with much trash that arent that common to players Link to comment Share on other sites More sharing options...
Sequisha Posted November 6, 2014 Report Share Posted November 6, 2014 This is garbage! I lol'd. This is straight trash; no bones about it. jonselfphoto 1 Link to comment Share on other sites More sharing options...
SkyDogs Posted November 6, 2014 Report Share Posted November 6, 2014 With the density of trash around Kavala, one would expect to find at least one backpack amongst it all. Did I find one after around 70 attempts? Did I feckers like. Nevertheless, this is a useful map to which I am grateful for. Link to comment Share on other sites More sharing options...
Čeh Posted November 7, 2014 Report Share Posted November 7, 2014 I don't think it's quite accurate - been to some places where there was supposed to be trash, nothing there (as in no trash, bins, barrels, boxes....) Link to comment Share on other sites More sharing options...
Brez Posted November 7, 2014 Report Share Posted November 7, 2014 Look at all that stomping ground. Link to comment Share on other sites More sharing options...
Nic Posted November 10, 2014 Report Share Posted November 10, 2014 Wait, so how did you get it to only mark the trash piles? I only ask because I would like to do the same thing with the water barrels. Link to comment Share on other sites More sharing options...
HFPatzi Posted November 12, 2014 Report Share Posted November 12, 2014 Maybe just change the object/class name (Land_GarbageBags_F) to what ever you want to be marked. But I'm not into scripting that much, so this is just long-shot guess ;) Link to comment Share on other sites More sharing options...
Creep Posted November 12, 2014 Author Report Share Posted November 12, 2014 Yep, just what he said. Exchange the classname to the object you want. There is a list with pictures on the bi wiki Link to comment Share on other sites More sharing options...
Nic Posted November 13, 2014 Report Share Posted November 13, 2014 _number = 0; _Container = nearestObjects [player, ["Land_BarrelWater_F"], 500]; { _number = _number + 1; _markername = format ["%1_%2", typeOf _x, _number]; _marker = createMarkerLocal [_markername, position _x]; _marker setMarkerShapeLocal "ICON"; _marker setMarkerTypeLocal "mil_dot"; _marker setMarkerColorLocal "ColorGreen"; } forEach _Container; I tried executing this in the debug console in the editor, but no markers were made. If you try what vbawol suggested nearestObjects [player, [], 50] It will mark every object in the radius, every tree, bush, grass, etc. So, how do you only get it to mark the objects you want? I think the water barrels, like the trash piles, don't have class names, so I am wondering how to only mark the water barrels. Link to comment Share on other sites More sharing options...
Zupa Posted November 13, 2014 Report Share Posted November 13, 2014 I tried executing this in the debug console in the editor, but no markers were made. If you try what vbawol suggested It will mark every object in the radius, every tree, bush, grass, etc. So, how do you only get it to mark the objects you want? I think the water barrels, like the trash piles, don't have class names, so I am wondering how to only mark the water barrels. nearestObjects [player, [], 50] that 50 is the ammounts of meters away from the "Player". I guess there werent itmes clear to you, and i'm pretty sure u need to give in a name in that [] ^^ For example= nearestObjects [player, ["ALL"], 50000] 50k should be ok i guess in each direction? no clue how big the map is tbh. ALL covers all the objects. If the object is really called Land_BarrelWater_F then use that instead to only get those items. Ill pass you a tree strucutre of items names/parents http://browser.six-projects.net/cfg_vehicles/tree Link to comment Share on other sites More sharing options...
Creep Posted November 13, 2014 Author Report Share Posted November 13, 2014 Problem is that whatever you try the trashpile objects and some other misc thing cant be found by the classname.. Link to comment Share on other sites More sharing options...
Nic Posted November 13, 2014 Report Share Posted November 13, 2014 Problem is that whatever you try the trashpile objects and some other misc thing cant be found by the classname.. Exactly, I did a little research and apparently in some update to improve performance, most of the class names have been striped from the map models. nearestObjects [player, [], 50] that 50 is the ammounts of meters away from the "Player". I guess there werent itmes clear to you, and i'm pretty sure u need to give in a name in that [] ^^ For example= nearestObjects [player, ["ALL"], 50000] 50k should be ok i guess in each direction? no clue how big the map is tbh. ALL covers all the objects. If the object is really called Land_BarrelWater_F then use that instead to only get those items. Ill pass you a tree strucutre of items names/parents http://browser.six-projects.net/cfg_vehicles/tree If you looked at the code I tried to execute, I did include a classname and it still did not work. Link to comment Share on other sites More sharing options...
Zupa Posted November 21, 2014 Report Share Posted November 21, 2014 Exactly, I did a little research and apparently in some update to improve performance, most of the class names have been striped from the map models. If you looked at the code I tried to execute, I did include a classname and it still did not work. Was there a waterbarrel in 500 meter radius of you? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now