ID:268427
 
I'm trying to make it so "client/Center()" calls a verb... But, the verb is set up like this
verb
Shoot()

And I read in the help booklet that you can call proccesses... but I need to call a verb =/... help will be apreciated. This is what I have so far:
client/Center()
call_shoot()

Oi, I suck at this...
mob/verb/Shoot()

client/Center()
mob.Shoot()
In response to Airjoe
mob
soldier
icon = 'Hunter.dmi'
verb
Shoot()
client/Center()
mob.Shoot()
usr.icon_state = "fire_pose"
var/obj/bang/B = new/obj/bang(usr.loc)
B.own = usr
walk(B,usr.dir)
sleep(10)
usr.icon_state = ""
del(B)

x.X I would be expecting you meant something like that.
In response to Hell Ramen
<code>mob soldier verb Shoot() // shoot stuff client Center() mob.Shoot()</code>
In response to Foomer
I should just give up and make it so you have to press "Shoot" to shoot...
Demo.dm:28:error:mob.Shoot:undefined proc

mob
soldier
icon = 'Hunter.dmi'
verb
Shoot()
usr.icon_state = "Aim"
var/obj/bang/B = new/obj/bang(usr.loc)
B.own = usr
walk(B,usr.dir)
sleep(10)
usr.icon_state = ""
del(B)


obj
bang
icon = 'ad.dmi'
density = 1
var
own
Bump(mob/M)
if(istype(M,/mob/hunter))
world<<"[M] is shot by [src.own]!"
M.loc = locate(1,1,1)
del(src)
client
Center()
mob.Shoot()

Oi,I put it below shoot, and below bang, yet no success...
In response to Hell Ramen
That's because only mob/soldiers have the Shoot() verb, while mob could be anything. Either you'll need to set a new variable to mob (var/mob/soldier/S = mob) and make sure it's the correct type first (istype()), or Shoot() will have to be a verb belonging to all mobs.
Also, Shoot() shouldn't be using usr, it should be using src.