ID:2709412
 
Code:
mob/proc/zoomMap()
for(var/zoom/z in zoomPlanes)
client.screen += z
animate(z, transform = matrix()*2)

var/zoomPlanes = newlist(
/zoom{plane=0},//TURF_PLANE
/zoom{plane=1},//OBJANDMOB_PLANE
/zoom{plane=2},//EXTRA_PLANE
)

zoom
parent_type = /obj
screen_loc = "1,1"
appearance_flags = PLANE_MASTER | PIXEL_SCALE


mob/Login()
..()
zoomMap()


//Button code
obj/triggerable
light
color="#ff9900"
icon='light.dmi'
icon_state = ""
plane = 2
var/triggerable/light_trigger

New()
..()
blend_mode = BLEND_ADD
light_trigger = new /obj/triggerable/button (locate(x, y-2, z))
EVENT_ADD(light_trigger.OnActivate, src, /obj/triggerable/door/proc/OnActivate)
EVENT_ADD(light_trigger.OnDeactivate, src, /obj/triggerable/door/proc/OnDeactivate)

proc
OnActivate(triggerable/Trigger)
animate(src, alpha = 150, transform=null, 1)
animate(src,
transform = matrix()*2.4,
time = 10, loop = -1,
easing = SINE_EASING)
animate(
transform = matrix()*2.35,
time = 10,
easing = SINE_EASING)
OnDeactivate(triggerable/Trigger)
animate(src, alpha = 0, transform=matrix()*0.1, 1)


Problem description:
Could anyone explain, why when my light are on plane when i use PLANE_MASTER flag i cant get effect i want? It does'nt detect blend_mode..
Your plane master has no background object, and the plane master itself also has the default blend mode of BLEND_OVERLAY.

With lighting planes, you want the plane master to have a background that's either black or some low grayish color for ambient light, and then you want the plane master to use the BLEND_MULTIPLY blend mode.

The individual lights then use BLEND_ADD so they add light onto the lighting plane, and the entire lighting plane gets multiplied over your scene.