mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
Allow observers to follow all living things on restricted levels (#10264)
This commit is contained in:
@@ -186,9 +186,10 @@ Works together with spawning an observer, noted above.
|
||||
return
|
||||
|
||||
if(following)
|
||||
if(!iscarbon(following)) //If they are following something other than a carbon mob, teleport them
|
||||
if(!isliving(following) || isanimal(following)) //If they are following something other than a living non-animal mob, teleport them
|
||||
var/message = "You can not follow \the [following] on this level."
|
||||
stop_following()
|
||||
teleport_to_spawn("You can not follow \the [following] on this level.")
|
||||
teleport_to_spawn(message)
|
||||
else
|
||||
return
|
||||
//If they are moving around freely, teleport them
|
||||
|
||||
Reference in New Issue
Block a user