//to bump into a MOB then compare stats to calculate damage.
//Example:
Code:
obj/Projectile
icon = 'Projectile.dmi'
icon_state = "Projectile"
density = 0
New(var/mob/M)
src.loc=M.loc
walk(src,M.dir,0)
spawn(20) del(src)
Crossed(var/mob/M)
var/damage = rand(1,10)+USR.PjtDam-M.PjtDam
//Here is how I would spawn the projectile.
//Example:
Code:
mob/verb
Shoot_Projectile()
new/obj/Projectile(usr)
//Problem: In the damage calculation, It can't find USR to read thier stats.
//How do I get the OBJ to read the USR's stats?