var/hull = pick(walls)
for(var/obj/Misc/hull/wall in oview(hull,2))
del(wall)
del(hull)
Thanks.
ID:269992
Dec 7 2005, 2:54 pm (Edited on Dec 7 2005, 3:08 pm)
|
|
Okay, I want to code shrapnel that shoots out from hull tiles that are destroyed. They can shoot out in straight lines if that's the easiest to do, and need to damage mobs when they are hit with it. I looked up for explosions and etc but they just create objs with animation in a certain radius of tiles and then delete, so that wasn't what I was looking for. This is the hull deletion code:
var/hull = pick(walls) Thanks. |
In response to Unknown Person
|
|
Thanks for your help by the way. I have a few questions though, this is what I edited your code to:
shrapnel I'm not familar with how to change mob vars (like hp) in a Bump() situation like that, do I have to make a proc and call that? For some reason when I put i with every direction, there would be one shrapnel piece that would stay in the original location of the canister; I made that for loop to fix that, or is there a better way? |
In response to Justin Knight
|
|
Bump.
|
Just create the canister class, then fire it!
~~> Unknown Person