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...
ID:268427
Jul 26 2004, 2:33 pm
|
|
I'm trying to make it so "client/Center()" calls a verb... But, the verb is set up like this
verb 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() Oi, I suck at this... |
In response to Airjoe
|
|
mob 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 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. |
client/Center()
mob.Shoot()