ID:175831
Mar 6 2003, 11:24 am
|
|
How do I make it so that I have a turf on which a mob cannot fly over but fly over all other turf.
|
In response to Volte
|
|
Something to the effect of:
mob/var/flying // a variable to test if a mob is flying Note: if you define Enter() for other turfs, be sure to include the bit about the flying, or finish it with return ..(), otherwise your flying mobs will not be treated as flying when trying to enter those turfs. DerDragon |
In response to DerDragon
|
|
GAH! COLON BAD!
Also, it's Enter(atom/movable/A) not Enter(atom/A). Atoms can't move. |
In response to Garthor
|
|
Garthor wrote:
GAH! COLON BAD! No, colon good. He has used it correctly in this instance. I'm sure he didn't define the variable 'flying' directly under atom. Colon is very useful at multiple times. You just need to learn to use them right, so they aren't harmful or unstable. ~>Volte |
In response to Volte
|
|
It's still better to do a type-casting.
|
In response to Garthor
|
|
You have a point, and it is well taken. Though the colon is still fine in this case, chances are he's not going to have flying objs.
|
Do you mean you cannot walk across it no matter what?
~>Volte