|
Post by electrolyte on Nov 24, 2019 12:37:42 GMT
Hi all,
Wondered if there is a function that calls back if the players gun is on a valid Target / in range?
Example, player aims gun at an enemy and the HUD of the gun sights changes colour.
Many thanks!
|
|
|
Post by Invector on Nov 25, 2019 17:52:49 GMT
We don't have this feature out of the box, but basically you could turn the raycast hit from the method UpdateAimPosition (vShooterMeleeInput) and use it to identify layers or tags, then you could create a simple color scheme with the 'controlAimCanvas' to switch colors.
|
|
|
Post by electrolyte on Nov 26, 2019 12:05:59 GMT
Thank you, that's pointed me in the right direction.
|
|