BrotherLaz Posted March 13, 2012 Share Posted March 13, 2012 (edited) I want to attach a magiceffect to a location and do stuff there. In particular, I want to be able to point at a spot and cast a spell and trigger the magiceffect. I suppose if I figure out the "teleport arrow" thing I'll have this figured out too. How do I do this? EditEdited with the solution! The secret:Make a spell that summons an invisible unit with no AI and a lifespan of 2 seconds. This unit has a perk that grants an ability that does nothing but has a script with an Event OnEffectStart. The akCaster value in this event is the summoned unit. Now you have the XYZ location of the summoned unit. You also have the XYZ location of the caster, because this is the player. You can cast a spell from/to any point you want by using RemoteCast, which does require an object reference but you can create one by spawning a FXEmptyActivator activator at the position of another actor by using PlaceActorAtMe, then moving it to the correct XYZ location. Look out below! http://i44.tinypic.com/33cx91s.png Edited March 14, 2012 by BrotherLaz Link to comment Share on other sites More sharing options...
Recommended Posts