Difference between revisions of "Casting Spells From An Activator"
no edit summary
imported>Mrflippy |
imported>Mrflippy |
||
Line 69: | Line 69: | ||
;add 200 to the height so it is above the actor | ;add 200 to the height so it is above the actor | ||
float | float height | ||
set | set height to me.GetPos z | ||
set | set height to height + 200 | ||
source.SetPos z, | source.SetPos z, height | ||
;have the activator cast the AOE spell now | ;have the activator cast the AOE spell now | ||
Line 99: | Line 99: | ||
;add 1000 to the height so it looks like the lightning is coming from the sky | ;add 1000 to the height so it looks like the lightning is coming from the sky | ||
float | float height | ||
set | set height to me.GetPos z | ||
set | set height to height + 1000 | ||
source.SetPos z, | source.SetPos z, height | ||
;have the activator cast the lightning spell at the affected actor | ;have the activator cast the lightning spell at the affected actor |