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 z
float height
set z to me.GetPos z
set height to me.GetPos z
set z to z + 200
set height to height + 200
source.SetPos z, 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 z
float height
set z to me.GetPos z
set height to me.GetPos z
set z to z + 1000
set height to height + 1000
source.SetPos z, 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
Anonymous user