ID:144717
 
Code:
Electricwave
var/thrownby
icon = 'obj.dmi'
icon_state = "Electricwave"
density = 1
Bump(M)
if(istype(M,/mob/Player))
M << "<font color=white>You've been hit by [src.thrownby]!"
oview(M) << "<font color=white>[M] has been hit by [src.thrownby]!"
var/mob/Player/user = src.thrownby
var/mob/Player/target = M
target.power -= user.strength
call(M,/mob/Player/proc/Deathcheck)()
if(istype(M,/mob/NPC))
del(M)
del(src)

Electricwave()
set category = "Powers"
var/obj/Electricwave/E = new(usr.loc)
E.thrownby = usr
walk(E,usr.dir,0)
sleep(20)
if(E)
del(E)


Problem description:
I need to make it like lightning, so the icon has stretched for example, a long bolt of lightning, not just on icon moving, I hope people can help, thanks in advance :)
In response to SSJ-Chao
Good gads man, NO NO NO! Radditz's beam demo is world-renowned for its suckiness. It should not be given to anybody, except as an example of how not to program.

Lummox JR