cheat gfi Flashlight 1 0 0
cheat giveitem "Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/WeaponAttachments/PrimalItemWeaponAttachment_Flashlight.PrimalItemWeaponAttachment_Flashlight'" 1 0 0
The Flashlight Attachment is a useful device to be attached to your secondary. Unlike the torch, it does not lose durability over time and can be used underwater, but it does have only a front viewing arch which makes you have to aim to wherever you want to shine your light on.
In order to activate just drag this attachment to your chosen weapon, drag the weapon to a specific quick-slot, select the number you put the pistol with the attachment in and press N to turn the flashlight on. (you can change this key to the "toggle weapon attachment". Sadly it does require you to press N each time you switch between tools, items, and actions such as inventory.
Note: Alternatively, the attachment can be activated by double tapping the reload key (default R on PC, on PS4, on Xbox or Y on Switch).
It will use the durability of the weapon.