ID:179515
 
Im trying to make a place light verb, which places the light, then places the obj/beam all around it.. i tried this:

place_light()
new/obj/light(usr.loc)
new/obj/beam(usr.x,usr,y-1)


It wont give any errors upon compiling, nor in game. It just doesnt work. Can someone help me out?

-Jcet
Jcet wrote:
Im trying to make a place light verb, which places the light, then places the obj/beam all around it.. i tried this:

> place_light()
> new/obj/light(usr.loc)
> new/obj/beam(usr.x,usr,y-1)
>

It wont give any errors upon compiling, nor in game. It just doesnt work. Can someone help me out?

The second one won't work because you have to pass in a turf, not x,y,z coordinates. Use locate() to get the turf you want then pass it to the new() call.
In response to Deadron
I dont quite get what you mean. Something like this?

place_light()
new/obj/light(usr.loc)
new/obj/beam(locate(x,y,z))



Please let me know what i need to do.


-Jcet [On bro's key]
In response to Pillsverry
Pillsverry wrote:
I dont quite get what you mean. Something like this?

> place_light()
> new/obj/light(usr.loc)
> new/obj/beam(locate(x,y,z))
>


Yes that should work. Try it and see what happens.