Not sure what you mean by a “component”, but you can absolutely get other objects and access their properties, location, etc etc
Usually it’s most convenient to get them via some kind of interaction, like accessing the target from a collision sensor or ray sensor. Alternatively, you can look it up in the list of all objects in the scene, or just keep a reference to the object inside a global variable.
maybe you mean getting arguments from another component or local-global variables that another component uses? you can get an object through sensors-rays, radars, and collisions, or through rayCast you can get properties from the received object and change them - for example, for bullet damage-
ray = own. rayCast(own, enemy, 100,")
hit = ray[0]
if hit:
if ‘health’ in hit:
hit[‘health’] -= 10
or so
radar = cont. sensors [‘Radar’]
if radar.positive: obj = radar. hitObject
if ‘health’ in obj:
obj [‘health’]-=10