Heyy,
I have make a blueprint program who when I look the weapon, a highlight appear in the weapon, i have no error but when I play and I look the highlight no appear !
This is my blueprint program :
Thanks for the help ^^
Heyy,
I have make a blueprint program who when I look the weapon, a highlight appear in the weapon, i have no error but when I play and I look the highlight no appear !
This is my blueprint program :
Thanks for the help ^^
imo move that logic out from pickup to player character blueprintâŚ
fire trace and as debug first use print string node if you are really hitting that weapon⌠if yes then just use some highlight FX⌠that node âset render custom depthâ working?
also make sure your weapon have trace âvisibilityâ collision on
Thank you ! In fact, my weapon donât have trace âvisibilityâ collision on itâs just this
I tried Dot Product for Highlighting things, but it uses Post Processing which tends to slow the engine a little.
but how can I do for toggle a message when I look the camera and when Iâm in the trigger ?
(In fact, I want to toggle the visibility of the name of the weapon when i look the weapon and when iâm in the box trigger)
Thank you
If youâre using a text component rendering the text in-world, just set the text componentâs visibility to none/zero/false to cause it to disappear. Set it to true to reappear. If youâre just talking about debuging, just drag the pin of the object hit into a printstring node and itâll automatically work. If you want it to affect text in your UI, look up UI tutorials, but mostly its the same/get object name->set text.
If you mean you got the weapon highlighting to work, and are wondering how to turn it off if the player isnât looking at it, just add in a retriggerable delay to the highlightweapon event so after .5 seconds or whatever itâll autoturn off the highlighting, since the delay is retriggerable it wonât turn off until the player is no longer casting to it. Thatâs one way anyway.
Hmm thanks for your comment, but i have suceeded to find the answer :
But i have an other problem xD : I have 2 mesh who have a reference to the same blueprint, so when I have the crosshair in one of the mesh, the 2 text appear like this :
Itâs possible to correct ?
i think its because you not specified which text to appear⌠drag wire from âcast to rifle pickupâ and use its text reference