ID:172017
Jul 7 2004, 10:33 pm
|
|
I got a question is there a better way to make a projectile pass through a dense turf then just toggling its density it makes the projectile sluggish thanks in advance
|
In response to Garthor
|
|
Thanks that is a way better way to go about it i appreciate it as for the grammer lecture not needed.I am not a writer dont want to be a writer so i honestly dont care about grammer like the 99.9% that do on BYOND.
I realize your a smart person and are talented at writing spelling programming ect but not all of us care about the things that you do.I perfer working out doors doing anything number of things rather then dedicating my life to being the best writer/speller because its rather boring to me thanks for the help though. |
In response to Brokenleg
|
|
If you aren't going to be using proper grammar, I refuse to help you any longer.
|
In response to Garthor
|
|
I have seen you help people with far worse grammar
|
Anyway, it's easy. One thing you have to understand first is how a turf (or area, obj, or mob) determines whether something can enter it: the Enter() proc. It returns 1 if the thing can enter, and 0 if it can't. It doesn't do anything else, and SHOULDN'T do anything else. It should almost never modify variables. It doesn't even call Bump(), Move() does that. Anyway, to modify it so that certain turfs let certain things through them, just do something like this:
The return ..() means "return whatever Enter() would normally return."
Now, you can define turfs as impassable by setting passable to 0. This is a way of saying "Nobody can walk on this, but you can fly over it." Because density is 0, you will never Bump() into water, which can be considered desireable.