warp
parent_type = /area
test1
Enter(mob/M)
M.loc = locate(1,1,1)
for(var/mob/monster/Q in M.monsters)
Q.loc = locate(M.loc)
The monsters don't get warped with it. :(
How would you go about doing this?
ID:268722
![]() Oct 31 2004, 7:18 am
|
|
warp The monsters don't get warped with it. :( How would you go about doing this? |
![]() Oct 31 2004, 7:49 am
|
|
Don't use locate(M.loc). If a player is on the map, their loc will be a turf.
|
Hell Ramen wrote:
The monsters don't get warped with it. :( You've got several parts of this wrong. warp You're using Enter() instead of Entered(). If you don't want to restrict movement, then use Entered(). The argument shouldn't be mob/M, if you aren't checking if its a mob too. It might be longer, but it is more safer and organized. The second thing which is wrong is that you're using locate() on a loc. You can just edit the loc manually. warp If I made any errors, tell me. ~~> Dragon Lord |