Search the Community
Showing results for tags 'object id'.
Found 2 results
-
Native Map Objects IDs changing with updates
Ulfgaar posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Made a few vanilla missions (with DLCs) where im using object ID's to have my players interact with certain objects native to the map. My problem is that with pretty much every update where the maps have been "polished" in some way or had more objects added to them - the object ID's change and their numbers are scewed with a few digits. This ofc fucks over my mission i a severely bad way - as triggers and events depending on said object having the correct ID - suddenly wont work, as the objects ID has changed. So "blowing up" said object - wont activate the trigger, as the object now has a different ID than what the trigger is waiting for. Please fix this - as i've spent ages on making these missions which i was about to publish on steam workshop. Now however, after discovering this - it seems there is no point in publishing the missions, as they will only work up until the next time an update on the map is put into play. The big question for my sake is, why does old objects need to get new ID's when new objects are added or old ones removed? Having this happen really fucks stuff up for me as a mission creator (now that i finally figured out how to use native objects on the map as part of my missions). *sadface* //Ulfgaar -
Tried to do a search, and found alot of different things but could not to what i saw, find something spesificly like this. So, down to business... First of all, go to the "Debug Console" in the "Tools" menu you have in your Eden 3D editor. Type in the following: do3DENAction "ToggleMapIDs"; ..and press the "LOCAL EXEC" button. This will show you all the object IDs to all default map objects (once you have zoomed in close enough), such as radio towers, buildings, bridges, bushes, trees so on and so forth etc. etc. etc. Run it again to turn it off again. Now, I’ll type up an example on how to blow up a default radio tower on a map, and get a trigger to register this as part of your mission. Step 1: Find yourself a suitable target, in our case - a radio tower on the map by default. Step 2: Place a "Game Logic" on top or near it, from "Objects" in the "Logic Entities" selection (F5 (Systems) --> Logic Entities --> Objects --> Game Logic). Step 3: In that the "Game Logic" init field, type as an example: Target1 = (getPos this nearestObject 224112); // Target 1 is what the "Variable name" will be. // 224112 is the object ID of that specific radio tower/object, now visible on the map, from running the code at the top of this post in your debug console. Step 4: Place a trigger. In its "Condition" field, type this: !Alive Target1; ..and to check that this works, you can type this in the "On Activation" field: Hint "Tower Destroyed!"; Step 5: Now, place your charges - or whatever means you wish to destroy said tower/object - and the trigger should fire once its destroyed. I needed this, and have been through several posts to find "bits and pieces" of what i needed to make this - hoping it will help others as much as it has me :)