ID:171380
 
Hey can anyone help me i made a mouse click for when you click a mob but i want it to use a marco my games set how i do that?
The macro for click is .click if that's what you're asking. So to click the mob "Joe", the macro would be .click joe.
In response to Mobius Evalon
Mobius Evalon wrote:
The macro for click is .click if that's what you're asking. So to click the mob "Joe", the macro would be .click joe.

i want mine to shoot the mob when clicked he is what i have

mob
Click()
center return "Shoot"

but nothing happends
In response to CrazyFighter
Make a proc for shooting if you haven't already...

mob
proc
Shoot(mob/M)
//etc

Then have your click proc call it.
mob
Click()
usr.Shoot(src)
In response to Mobius Evalon
Mobius Evalon wrote:
Make a proc for shooting if you haven't already...

> mob
> proc
> Shoot(mob/M)
> //etc
>

Then have your click proc call it.
> mob
> Click()
> usr.Shoot(src)
>


that don't work my shoot command is

mob
Wizard
verb //
Shoot()
set category = "Weapons"
if(src.Ammo <= 0)
src << "Not enough Ammo to fire."
return // stop the verb
src.Ammo -= 1
flick("Shooting",src)///Use this, it works much better for the way your using it
var/obj/A = new /obj/Bullet (src.loc,src)
A.dir = src.dir
walk(A,A.dir,1)
In response to CrazyFighter
There's no flexibility in that proc, you can be facing north, the person you want to shoot is south, and your shoot verb will still fire it north, there's no way to make it fire in the direction you wish as it is.

Take my example and modify your shoot verb; first make it a proc, give it an argument mob/M and modify it so it fires in the direction of the person you clicked, and it'll work how you wish it to.