I've scoured the forum and the CK wiki and can't find anything, so if I've missed an answer to this, feel free to point me at it and I'll get the thread closed.
What I'm trying to do:
Cast a spell at an object or hit it with a dummy weapon ( I don't care which, so long as I can get it to work) and get a reference to the targeted object so I can then start manipulating it.
So, for example, cast a spell at a container, and get back a reference to the container, confirm that it is in fact a container, and then carry on from there.
It seems like such a straightforward thing to do, but I'll be damned if I can figure it out. I've tried creating a Magic effect of various types - contact, target actor, target location and so on - then add that to a spell, give myself the spell... cast it and nothing happens. Or at least nothing that gives me back the akTarget reference. I'm obviously missing something or using the wrong method.
I know it's a bit vague, but all I really want is "give me this thing's reference" - I can take it from there. But to be honest, I've kinda reached a dead end in my attempts to achieve this.
Anyone found a way to do this?


