Jump to content

Trashpile Lootmap


Creep

Recommended Posts

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
Link to comment
Share on other sites

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

 

_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

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

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

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

  • vbawol unpinned this topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...