I am trying to get some data from the map that I am using. The map creates a bunch of entities, some of which are of entity type “power_socket”. In EntSpy I can see that they have a “buildingid” assigned to them, but how do I get this from the code?
I have made a function that uses the OnEntityCreated hook to get the entity. After checking if the class is actually power_socket, I try to do ent.buildingid but without luck. Any chance you guys can help me out?