mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-17 20:30:46 +01:00
4f8e9f7ef8
* 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...
22 lines
497 B
Plaintext
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)
|