ID:149493
Apr 18 2002, 4:50 pm (Edited on Apr 18 2002, 5:16 pm)
|
|
When ever I made a gun instead of shooting it deletes turf under it and blocks as well
|
Apr 18 2002, 5:22 pm
|
|
thats odd. maybe try the projectile system.
|
In response to JordanUl
|
|
That's funny I c9ouldn't find it
|
In response to Buzzyboy
|
|
It's in the FAQ: http://www.deadron.com/byond/ ByondBwicki.dmb?ShootingProjectiles
|
In response to Shadowdarke
|
|
That thing didn't work. It isn't launching
|
In response to Buzzyboy
|
|
Hmm, it should work as Spuzzum wrote it. you may not be able to see it because Spuzzum's snippet didn't give the bullet obj an icon. Hopefully you noticed that and gave it one.
Did you try the links at the bottom of the page? |
In response to Shadowdarke
|
|
no
|
In response to Buzzyboy
|
|
It now launches it but I can't get it to do damage with my code
|
In response to Buzzyboy
|
|
If you are using my snippet, it tells you to put your damage code in the projectile's Bump() proc.
|
In response to Shadowdarke
|
|
I know but the src.HP-=12 isn't working
|
In response to Buzzyboy
|
|
That is because src in the Bump() proc is the projectile, not the thing that has been hit.
|
In response to Shadowdarke
|
|
So what your saying it is not working because src in the Bump() proc isn't the other player?
|
In response to Buzzyboy
|
|
Buzzyboy wrote:
So what your saying it is not working because src in the Bump() proc isn't the other player? Exactly. You can learn more about Bump() here: http://www.deadron.com/byond/ByondBwicki.dmb?HowToBump |
In response to Shadowdarke
|
|
that doesn't help. Tje only problem is the var
|
In response to Buzzyboy
|
|
The problem is that you don't know how to use Bump(). src is the projectile, the first argument in Bump is the object being Bumped, or shot in this case. You would want something like:
obj/projectile Bump(target) if(ismob(target)) var/mob/mobtarget = target mobtarget.HP -= 12 |
In response to Shadowdarke
|
|
Thnx a lot Shadow!
|