for(var/turf/T in usr.loc) |
But that didnt work. Any help is thankful =3
ID:273974
Oct 25 2011, 2:27 pm
|
||
How would i go about checking if a mob is on said turf, the ntriggering the turfs Entered() Proc? I tried
But that didnt work. Any help is thankful =3 | ||
#2 Oct 25 2011, 2:35 pm
|
||
Entered() is only called once Enter() passes and allows you into the tile.
If you are using the native pixel movement, you can use bounds(). for(var/turf/T in bounds(blabla)) Then call a proc that you define yourself.
I hope that helps. | ||
Albro1 wrote:
Entered() is only called once Enter() passes and allows you into the tile. Not really, The situation is that i have a verb to teleport someone to a location, lets say 1,9,5 but lets say 1,9,5 is a turf that has an Entered() function. How would i make that Entered() Function trigger without moving out of 1,9,5 then moving back into it without having the function happen via the verb as well? | ||
Use Move() to move them instead of setting their loc.
| ||
if(istype(loc,/turf/some_turf))The 'loc' variable will contain the atom you're currently contained by, this means if you're standing on a turf your loc variable will be that turf. If you're within another player's contents your loc will be that player.