/obj/Attack |
Problem description: I have a verb called Attack() and i want it to be called when i click a button on my HUD. When compiling i dont get any errors, but when i run the game and click the HUD button i get "runtime error: Cannot read null.def
verb name: Attack (/mob/verb/Attack)
usr: Baltraven (/mob)
src: Baltraven (/mob)
call stack:
Baltraven (/mob): Attack(null)
Attack (/obj/Attack): Click(null, "mapwindow.map", "icon-x=21;icon-y=7;left=1;scre...")
"
when i use the verb from the commands box, it works fine.