ID:270361
 
like you cant walk on or go through them
OK, first of all you should read the DM guide.But, anyways heres how you do it

 mob
icon='your icon here.dmi'
density=1

In response to TaintedSoul707
Wrong, for that effect to be achieved he'd have to set density to 0.
In response to Artemio
No, you're wrong. Read his post again.
In response to Crispy
They're both wrong seeing as a mob's density is set to 1 by default!
obj/turf isn't, though.
In response to Mysame
There are situations where one has identified mobs as being nondense somewhere, but want a certain type to be dense in which case, this would be useful.

mob/var/density=0

mob/Player/var/density=1


That would make all mobs nondense other than those of the /mob/Player/ type.
In response to CaptFalcon33035
That gives an error, chop off the /var declaration. =P

<code>error:density :duplicate definition (conflicts with built-in variable)</code>
In response to Papoose
obj

dumguy

icon = 'guy.dmi'
density = 1
that will make it so that you cannot go through a dum guy
In response to Papoose
Sorry 'bout that. I have been having trouble coming back to programming, not to mention my recent mathematical block (I think it's gone now) and my inability to solve a problem. I was also using ASSERT() where I wanted to use CRASH() and I was checking if(!N || N!=0) which would always be true.
=/

Why did you even bother to reply?

O-matic
Set the density of that obj/mob/turf to 1.
turf
grass
icon=''
density=1
obj
stick
icon=''
density=1


As for mobs, you don't even need to bother: A mob's density var is 1 by default.

O-matic