ID:169673
![]() May 14 2005, 11:26 am
|
|
I've been really sick today so my brains going dialup speed. I'd rather not wait tomorrow to do this so i'll just ask here. Could anyone post a simple explanation to checking if somethings loc is dense. Monsters randomly spawn on my maps but I don't want them spawning on water, if they do I'll have the game reteleport them but I have to figure out a way to check if their loc is dense first.
|
![]() May 14 2005, 11:34 am
|
|
If your only concern is turfs then this'll work:
|
Okay Thanks alot but I ran into another problem. I usually don't ask any questions but I can't think today. I'm trying to save many lines of code by doing new/P.type(loc) which is the monster that is dying's type but it's not working out. I knew I couldn't do it but well, is there any way I can without making an if statement for each monster? Please don't yell at me for using usr in a proc. -.- You try catching the flu or something then try to make a game with it.
[ src is the monster ] [ usr is the player that killed it ] Respawn() The problem is quite obvious, it's trying to use P as an atom path. |
new P
And for redoing the spawn location you could do it easily with a do-while loop. ... |
Ok try this, notice I took out usr.
mob/verb/Attack(mob/M in oview(1)) //this is your attack verb I'd strongly suggest not using goto here. I'll let someone else give you a better example because my one will probably suck. |