» Mon Jun 18, 2012 5:42 pm
rlilewi is correct that spells only directly affect actors, although MrMuh is also right that they can be used to look for other things if you add a script to them.
The available functions allow you to find the closest reference of a certain type (or, as in the function mentioned by MrMuh, any type in a list) or a random reference of a certain type (or any type in a list) within a certain radius.
The function names might be a little misleading in that "type" refers to a specific base object, so you can't just look for, say, Activators. It's also currently impossible to reliably cycle through nearby references, as we can only find the closest one to a point or a random one within a radius.
A very useful thing you can do with a spell is add an explosion with a "Placed Object" that has a script attached to it, which will let you do stuff with/from the location that was hit by the spell.
Cipscis