Skip to content

Laser emiter

Deyan Dobromirov edited this page Oct 4, 2021 · 3 revisions

Description

This scripted entity is designed to output a laser beam. Every time a beam hits, the target will receive some damage and the given effects will be drawn. The beam can be reflected and refracted according to the hit texture. It can also use original entity material.

laser

Turning the entity ON / OFF

The entity will be turned on whenever the active numpad key is pressed or the wire input is connected and enabled.

Calculating output beam

The output beam behavior and visuals ( texture, sounds, color, flags etc. ) will be taken from the entity internals that are being edited by the user's request. Custom beam origin and direction require the user to update the laser beam source.

Wire behavior

This entity has inputs and outputs, which means that you can either read or write them. When a wire input is connected it will be taken with priority to the numpad input and utilize the wire provided value.

Clone this wiki locally