obj
boatship
icon='Boaticon2.dmi'
Res=5000
density=1
Enter(mob/M)
if(istype(M,/obj/hit))
src.Res-=M.Power
if(src.Res<=0)
del(src)
del(M)
This next piece of code is part of my cannonball from the boat ship. (Which is the next and super large code I dont want to give out at this moment) As you can see, this piece sends a cannonball at usr dir.
var/obj/A=new/obj/hit/cannon
A.loc=locate(usr.x,usr.y,usr.z)
A.icon='ball'
A.density=1
A.Power=usr.Power
A.owner=usr
A.dir=usr.dir
A.limt()
walk(A,usr.dir)
the limit proc just kills the obj after a short sleep
Problem description:
The problem is that the ball just goes through the boat. Icon is 60x55 (Dont know if its the problem.)
Both objs have density
You would mean to use Entered() were Enter() the right proc.
You want Crossed() or you want to hook the cannonball's Bump() function.