Files
VOREStation/code/game/area/ai_monitored.dm
T
Kashargul 4f8e9f7ef8 some more new to init (#17231)
* some more new to init

* rigs

* rigs

* intellisense moment

* telcoms and landmarks

* fix that as well

* some more minor things

* re add missing message

* fix trash eating...
2025-03-01 13:39:52 -05:00

22 lines
497 B
Plaintext

/area/ai_monitored
name = "AI Monitored Area"
var/obj/machinery/camera/motioncamera = null
/area/ai_monitored/Initialize(mapload)
. = ..()
// locate and store the motioncamera
for (var/obj/machinery/camera/M in src)
if(M.isMotion())
motioncamera = M
M.area_motion = src
/area/ai_monitored/Entered(atom/movable/O)
..()
if (ismob(O) && motioncamera)
motioncamera.newTarget(O)
/area/ai_monitored/Exited(atom/movable/O)
if (ismob(O) && motioncamera)
motioncamera.lostTarget(O)