mob
verb
Missile()
var/obj/Misc/Missile/B=new(src.loc)
walk(B,src.dir,5)
sleep(30)
del(B)
ID:268999
![]() Jan 15 2005, 5:50 am
|
|
Hmmmmm... How do I make this make a missile one square infront of the shooter, rather then on the shooter himself?
|
![]() Jan 15 2005, 6:06 am
|
|
have you tried changing the 5 to a 4? see if it changes where the missile starts.
|
Well, I solved that problem, but, how do I make it delete itself as soon as it hits the edge of the map? I dont like howw it hovers there until its time limit is over... I want it to be deleted right when it hits.
Missile |
I think that if Newloc (in the bullet's Move proc) is null it's trying to go off the map.
bullet_thing/Move(NewLoc,Dir) |
There's an easier way.
Use the Bump() procedure. that way you don't have to deal with breaking up the move procedure. I try to avoid messing with the move procedure unless it is unavoidable. Bump(var/atom/blockage) |