ID:174340
 
Is There Any Way I Can Make An Invisible Wall That The Characters Can Walk Through But The Monsters Can't?
area/nomonsterscangothrough
Enter(atom/movable/A)
if(ismob(A)) // if they are a mob
var/mob/M = A // make a new directory so they get the mob variable stuff
if(istype(M,/mob/monster)) // I assume that you have a different type for monsters
return // Return nano. The monsters cant go through because they are at the type of /mob/monster
return ..() // otherwise, you can go through


~~ Dragon Lord ~~

PS: Talking with words with caps in every word gets irritating. >.>
I am not sure this should be in code problems, but I will help anyway, on one condition. You NEVER use a capital letter for the Start Of Every Word, in any future posts, it is EXTREMELY annoying. Anyway!

turf/BridgeBlock/Enter(mob/M)
if(M.icon != 'Non-Fish.dmi')
return 1 // block non-fish from entering
return 0 // fish can enter

now you can replace the icon bit for typesof, and it should work fine!

~GokuSS4Neo~
In response to Gokuss4neo
thanks!










(^see, no caps) =)
In response to DarkCampainger
But you still aren't capitolizing the first letter of every sentence.

Seriously, don't they teach you this stuff in first or second grade?
In response to Garthor
do you ever give up ><
In response to DarkCampainger
Yes, I give up when stupid people refuse to stop being stupid.

I give up.
In response to Garthor
YAY