mob
var
target = null
mob // does not make image appear over target. FIX.
proc
engage(image/T = new('target.dmi',src))
if(src.client)
return 0
if(usr.target != null)
return 0
if(usr.target == null)
usr.target = src
src << T
usr << "works"
return
mob
enemy
DblClick(M as mob in view())
src.engage(M)
Problem description:
Hey guys. Just brushing up on my coding again. Still shaking the rust off as you can tell. I'm having trouble with my engage proc.
The purpose of the engage proc is to merely make a mob the user's target and have a marker on it, which is only viewable by the user.
I've tried a bit of research in the forums and I can't quite tie all the input into a solution.
Then that will keep outputting 0 because n as num doesn't really do much. If you do
Then you will get to select what n is.
You're meant to SEND arguments into a proc like so:
With that in mind: