Getting card reader ID for a monument?
I would like to get the Card Reader of differents monument. Is it possible?
For example, I would like to be able to do something like "If the player try to open the doors of the Launch Site but he's not allowed so don't open it".
I managed to do that but I have to manually find the ID then add it to the plugin and it changes depending the map.
What kind of an ID are you looking for?
I'm looking for a way to get Card Readers of Monuments. Something like "The Card Readers' ID of the Launch Site are 1900 and 1901".

I found that cardReader.GameObject.name return an "ID" (like RCD_C_CardReader) but it seems to not return that on map that I edited with RustEdit.
you can scan the monument location on plugin startup to get the cardreaders net.ID
I tried to read/rewrite this part of one of your plugin you made for me to understand (I'm learning CSharp) but I don't understand. It's why I'm trying to get some answers here :D
Maelep
I tried to read/rewrite this part of one of your plugin you made for me to understand (I'm learning CSharp) but I don't understand. It's why I'm trying to get some answers here :D

Different question. You need to know what cardreader is attached to which monument. Why you can't
1. Get all cardreaders
2. Get all monuments
3. Parse values, closest monument to cardreader is probably owner of that cardreader
4. Done?

P.S.
 UnityEngine.Object.FindObjectsOfType<CardReader>()
 UnityEngine.Object.FindObjectsOfType<MonumentInfo>()​
Probably not much help, but im using this to find an id and add it to a config
[ChatCommand("Merp")]
        void Merp(BasePlayer player)
        {
            IOEntity io;
            if (!IOLOOK(player, out io))
            {
                SendReply(player, "No IO Found");
                return;
            }
            SendReply(player, $"found IO {io}");
            var merp = io.net.ID;
           configData.merp = merp;
            SaveConfig(configData);
}​

Look at item, do /Merp and its in the config.

Thank you! I thought about a command like yours but I would like to do it autonomously :)
thats oright... (hence the probably not much help) but something to throw in the snippets bin... good for testing too ^^ :P all the best!