OnCreateLineRenderer(LineRenderer lineRenderer) event so you can grab the LineRenderer when you shoot
AddLightOnCreateLineRenderer
Uses OnWeaponRaycastSpawn’s OnCreateLineRenderer event to grab the newly created LineRenderer and attach a light to it.
CreateAndParentOnCreateLineRenderer
Instantiates (if you choose to) a specified GameObject and parents it to the LineRender that is returned from OnWeaponRaycastSpawn’s OnCreateLineRenderer event.
Fixes
MoveLineRenderer
The GameObject now moves along and rotates properly with the LineRenderer. It’s position will now be between the start and end of the line.