mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Turret controls can reference their control area by path
This commit is contained in:
@@ -48,6 +48,8 @@
|
||||
/obj/machinery/turretid/initialize()
|
||||
if(!control_area)
|
||||
control_area = get_area(src)
|
||||
else if(ispath(control_area))
|
||||
control_area = locate(control_area)
|
||||
else if(istext(control_area))
|
||||
for(var/area/A in world)
|
||||
if(A.name && A.name==control_area)
|
||||
|
||||
Reference in New Issue
Block a user