Author Topic: Onplayer touch emmiter kill?  (Read 934 times)

How do you make it so if you touch the emmiter it will kill you. im making a laser fence. and i put a brick where the laser lines go throught and made it invCIAble and left collision there and made the events Onplayertouch player kill and that worked nicely and then i made them dissapear when i did the password and the brick came back and wasnt invisible please help

An emitter is not a shape - it has no collision.
Therefore, this is not possible.

well then can you tell me how to make a laser fence that will kill people when they touch it?

350 onactivate   self   firerelay
350 onrelay   self   firerelay
onrelay   self   spawnprojectile   alien blaster laser

dont use laser fx...that will lag, believe me, ive tried

can you stop now? just do this for each brick you want to emit a laser

Because everyone has the alien blaster laser.

He means with the emitter.

how can i make the laser go to the side with on relay i tried on relay east west north and all that but the it wouldnt work and what can i do to make it automatically be there instaed on me having to click it

Code: [Select]
OnActivate > Self > SetEmitter > LaserA
(Do this for the 1x1s)

OnPlayerTouch > Player > kill
(Do this for the 1x12x5)

+'s represent the 1x1 bricks.
='s represent the 1x12x5 brick. (Make this have rendering off.)

+=====+
+=====+
+=====+
+=====+
+=====+

(Direct all laser emitters attached to the 1x1 bricks inward, towards the 1x12x5 brick.

This is why i want a projectile that you can only see when you have a tool out.
Like non-rendered bricks.

is there a way to do it without onactivate cause i want it to be up without clicking it

You can. Just take out the onActivate part Tezuni told you about, and put on the emitters normally.

NO NO NO!!!!!! I said i want to know how if i touch the lasers it will kill me!!!!!! not is i touch the brick!


If its immposible then why did one guy on here in gallery post his laser fence and say that if you touch it you die?

He was using invisible bricks, exactly how Tezuni showed you.

I'm not going to explain how to make a laser fence.

Put bricks inside where the lasers shoot, but turn off their raycasting and rendering. Then, event them so the player dies when they hit the invisible bricks.