obj/props/laserbutton
icon='props.dmi'
icon_state="laserbutton"
density=1
name= "Laser Control Panel"
verb/Use()
set src in oview(1)
set hidden = 1
view(6)<<"<font color=purple><b><small>[usr] has activated the laser system."
LaserSpawn()
Problem description: Basically, I'm trying to make it so when players activate a switch, lasers will spawn in the nearby area, so when a hostile player crosses it they're vaporized instantly.
obj/proc/LaserSpawn()
switch(type)
if(/area/laser)
spawn(5) new/obj/props/lasers
I just can't figure out how to get the lasers to spawn in the areas within view in front the lazer button. The area has been placed infront of said switch.