rondivu Posted January 4, 2009 Share Posted January 4, 2009 This will probably be simple to most scripters but I'm new to scripting and I want to be able to make an activator in a spell go in a straight line. I know casting spells go in a straight line, but an activator needs an <actorID> to target. Unfortunately, I have no idea how to do this. It probably works by getting another activator and using a moveto command at the x coordinate being 10, and have the original activator target that activator? But since the activator is not living then wouldn't that not cast the spell at that activator? Another request i have would be, to basically have a lightning bolt strike the ground in front of the player, then another lightning bolt goes a little bit further than the previous one (on x coordinate), a little further away from the player, and another lightning bolt again casts from the sky and hits the ground further than the other two(basically a five lightning bolts from the sky each going straight down, and then further away from the players line of sight or going in a straight line). :thanks: Link to comment Share on other sites More sharing options...
LoginToDownload Posted January 4, 2009 Share Posted January 4, 2009 The target for a Cast function can be any persistant reference, not just an Actor (though it does weird things when not targeting an Actor or Activator). All you'll really need is a "caster" activator, a "target" activator, and a healthy dose of trigonometry (if you don't want to use OBSE, you could probably make do without the actual functions) paired with GetAngle Z. You couldn't really just drop it at a set X coordinate away, because that would only be "in front" of the player if they were facing perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.