This is the hud path, what it does isnt important. But the Click(var/mob/M in oview(5)) doesnt work right. it targets a turf and does the proc then. doesnt even give the use a choice what M would be. Here is the code.
obj
spellhud
flamejet
name = "Flame Jet"
layer = MOB_LAYER+55
icon = 'hud.dmi'
icon_state = "flamejet"
Click(var/mob/M in oview(5))
usr.flamejetproc(M)
It take var/mob/M as a turf and M becomes that turf. I want it to select mobs. Any ideas anyone?
ID:148175
![]() Jun 9 2003, 6:28 pm
|
|
Well, technically Click() is a verb. But that's why you can't just add arguments to it; it's already set up and is used in a very specific way. In it you can basically count on having access to src, usr, a stat panel or location of src (the argument to atom/Click()), and anything you look up yourself within the verb's code itself.
Lummox JR |
Click()
var/mob/M=locate() in oview(usr,5)
if(M)
usr.flamejetproc(M)