I want to make it so that when I walk into a room some it says GET HIM GUYS!!! and it creates 3 guys that come attack you. Here is my code.
area/baddyspop
var/destination
var/baddy
Entered(mob/m)
usr << "GET HIM GUYS!"
baddy = new /mob/baddys/Henchmen()
var/baddylocation = locate(26,9,1)
baddy = baddylocation
what the prob
ID:149994
![]() Jan 10 2002, 1:08 pm (Edited on Jan 10 2002, 1:31 pm)
|
|
They arn't on the map yet. I need them to be created on the map. How do I use move()? Like baddy.move(26,9,1)?
|
TK6000 wrote:
They arn't on the map yet. I need them to be created on the map. How do I use move()? Like baddy.move(26,9,1)? Using your previous code, it would be: baddy.Move(buddylocation) |
TK6000 wrote:
I get this error. Because baddy is defined like this:
var/baddy
That means baddy is totally generic, and the system doesn't know it's a mob. Try:
var/mob/baddy
|
ok thanks. I will try that. Right now tho I have to do some other stuff. I will post if it dosn't work.
|
well, the code I would use is:
var/mob/baddys/henchmen/H = new(src) H:loc = locate(?,?,?) You may have to repeat this for multiple members however Da_Rushyo |
A few things...for one, the last line doesn't move the mob. You actually want to call baddy.Move().
Next, the bad guys themselves will probably trigger area.Entered(), so you want to do a check to see if m.client exists before you do this.