ID:178333
 
is there a way I can set a mob(my vehicle) to move on only select types of terrain, some that is dense to people some that isn't?
well.... when you get in the vehicle you could turn density off, you just write density = 0...... thats what i think you are asking in general....
In response to Aleis
no, I'm trying to do a boat, I don't want people sailing on land...
Star313 wrote:
is there a way I can set a mob(my vehicle) to move on only select types of terrain, some that is dense to people some that isn't?

What you basically need to do is to write a custom Enter() proc:
turf/water
Enter(atom/movable/A)
if(istype(A,/mob/boat)) return ..() // sure, come on in
return 0 // no boat, no walking on water

This makes water act dense, so nothing can get out over it except a boat. You don't need to set density=1 in this case--in fact you shouldn't, since it would mess with the default value from ..().

Lummox JR