How to make single-shot laser beam for handweapon?

Place to get help with not working mods / modding interface.
User avatar
DemerNkardaz
Inserter
Inserter
Posts: 27
Joined: Wed Jan 18, 2023 12:32 am
Contact:

How to make single-shot laser beam for handweapon?

Post by DemerNkardaz »

I didn't find information about that and try it with existed code examples from game. With mods of laser hand weapons, I found only what used tracer instead of beam texture.
With ready game example in laser turret, I have laser beam, but this not have sound, and it casts from player's head + some other bads, like "infinity beam" (when hold attack button) etc.
With projectile type, I have all what I need, but not have laser beam visualization and don't know how to make it workable. How I can place single-shot beam from weapon to target with projectile type of attack_parameters?

Just current lasguns without beams:
Post Reply

Return to “Modding help”