ID:142915
 
Code:
obj
bya
icon='byakurai.dmi'
density=1
New()
..()
spawn(30)
del src
Bump(mob/M in world)
if(istype(M,/mob))
var/damage = round(src.reiatsu/5)
M.health-=damage
M.KOcheck()
spawn() del src


Problem description:

So this is my byakurai projectile... and I was curious as to how I link the src.reiatsu to the projectile?
obj/bya/var/reiatsu
In response to Garthor
I still don't understand how that's going to link back to the player though...
In response to GohanIdz
It doesn't. src is the projectile. If you want to refer to the player, you're going to have to give the projectile a variable that stores the player:

obj/projectile/var/mob/owner


Then you need to assign owner (ideally passed as an argument to New()) to the player who shoots the projectile.
In response to Garthor
How do you link the owner to the projectile?
In response to GohanIdz
obj/projectile/New(var/mob/shooter)
loc = shooter.loc
dir = shooter.dir
owner = shooter

mob/verb/shoot()
new projectile(src)
In response to Garthor
Ah, I see. Gracias.