How to check attributes of other actors?

Hello! I'm making a game where objects either have a positive or negative magnetic charge. If they are in range of each other and both are either positive or negative they repel and if they are different they attract. I am achieving this by having each actor set a local attribute called positive to true or false depending on what kind of bullet they collide with. The objects will only attract or repel if they are in a certain magnitude of each other, but I have a problem: how can I tell from one actor if another actor's attribute is true also? I can't use global attributes because I don't want to make a positive and negative attribute for every individual actor in every scene, that's a waste of time and memory. Do any of you know how I can get the value of another actor attribute? Thanks!
Answers