Billy EatWorld
Member-
Content Count
8 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout Billy EatWorld
-
Rank
Private
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Any way to pass a string as the value for a mission variable?
Billy EatWorld posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
class Params { class test { title = "Test"; texts[] = {"One","Two","Three"}; values[] = {"1","2","3"}; default = "1"; }; }; Like this? "test" call BIS_fnc_getParamValue; just returns 0. Thanks guys! -
Any way to add actions to the Commanding Menus?
Billy EatWorld replied to Billy EatWorld's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm not sure... I saw that and found BIS_fnc_addCommMenuItem could be used to add actions to the "supports" menu. What I'm really after though is a method to add actions to the default menu that pops up when a unit is selected. Looking to delete selected AI units and possibly more things as well. Just wondering if these menus can be customised at all. Is BIS_fnc_addCommMenuItem what I'm after? This is the one I'm talking about - https://imgur.com/CI3acoR -
Any way to add actions to the Commanding Menus?
Billy EatWorld posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Just wondering if this is at all possible! Thanks guys. -
Easiest Way To Resync Tasks To Player After SelectPlayer Is Used?
Billy EatWorld posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys! So i'm noticing after selectPlayer is used to switch the player into a new body, current tasks are being lost. The tasks seem to still exist, just aren't visible by the player. Is there an easy way to sync them to the player again? -
Trouble Hiding An Array Of Undefined Map Objects
Billy EatWorld replied to Billy EatWorld's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for the reply mate! I posted my solution in this thread if you're interested. Basically the issue was I was wanting to hide specific objects... some which were super simple objects and didn't have a class name. I solved that by comparing by the object model instead, but there was still around 3 million map objects x about 100+ different model types. The processing took more than an hour.. so any real time processing in game would obviously be impractical. -
Trouble Hiding An Array Of Undefined Map Objects
Billy EatWorld replied to Billy EatWorld's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for the reply! Unfortunately this wouldn't work. To be a bit clearer, basically the issue I was finding is that some terrain objects I was trying to find were super simple objects... i.e. don't have a classname. The solution for me was to search the map for objects with a matching model (instead of looking for the classname)... on livonia that was 3 million objects by about 100+ object types that needed to be checked (hours of processing). I ended up with a list of about 1700+ objects that matched (in the format in the OP)... and was just struggling with how to hide them. I've put the solution in this thread... essentially it was just my misunderstanding of how objectID's work. -
Trouble Hiding An Array Of Undefined Map Objects
Billy EatWorld replied to Billy EatWorld's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Answered my own question... For anyone wondering the trick is to get the object from the object ID using nearestObject _blacklistedObjects = [ 948464, 2860122, 1020605, 2882561, 2882560, 2882562, 2223850 ]; { // Get Object From ID _obj = [0,0,0] nearestObject _x; // Hide Object _obj hideObject true; } forEach _blacklistedObjects; -
Billy EatWorld started following Trouble Hiding An Array Of Undefined Map Objects
-
Trouble Hiding An Array Of Undefined Map Objects
Billy EatWorld posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys! So I'm just struggling to figure out how to do anything with map objects that haven't been defined... The goal is to hide specific objects on an entire map that don't fit a particular theme (WW2), so defining them and doing them in real time is not an option (takes hours to scan the map). I've created an array with objects that need to be hidden but obviously this code doesn't work. Any Ideas? (This is only a very small chunk of the array which is 1700+ objects). _blacklistedObjects = [ 948464: wreck_bmp2_f.p3d, 2860122: wreck_bmp2_f.p3d, 1020605: wreck_bmp2_f.p3d, 2882561: wreck_bmp2_f.p3d, 2882560: wreck_bmp2_f.p3d, 2882562: wreck_bmp2_f.p3d, 2223850: wreck_bmp2_f.p3d, 2705791: wreck_bmp2_f.p3d, 1108177: wreck_bmp2_f.p3d, 1108175: wreck_bmp2_f.p3d ]; // Hide Objects { _x hideObject true; } forEach _blacklistedObjects;