Change Crosshair Colour For Enemy, Teammate and Neutral - Unreal Engine 4 Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025

Комментарии • 63

  • @stevenwynn819
    @stevenwynn819 4 года назад +2

    A fittingly great tutorial for your 4K subscribers. Congratulations!

    • @MattAspland
      @MattAspland  4 года назад

      Thank you so much Steve! Thanks for all of your continued support too! :)

  • @jquikshot
    @jquikshot 10 месяцев назад

    Amazing tutorial! this helped me make the crosshair invisible when ADS. I must have watched 5 or 6 vids and yours was perfect!

  • @leoncalton9330
    @leoncalton9330 4 года назад +2

    congrats on 4k :D

  • @The_Twisted_Monk
    @The_Twisted_Monk 4 года назад +3

    Another great tutorial Matt, you're awesome. Wondering if you could make a tutorial on having the crosshair not visible until the player looks at something they can use, or interact with? Thanks for this channel Matt, you can learn a lot here. You know what you're talking about, so just keep doing what you're doing you're my Dude Matt, Thanks.

    • @MattAspland
      @MattAspland  4 года назад

      Thank you Russel, I could definitely look into that yeah. A good way of doing that with this code is in our widget, where we have the neutral image, just leave that image variable as empty. That way when we aren't looking at someone the crosshair won't appear. Hope this helps, but like I say I can do a video if that doesn't make sense or work for you :)
      Thank you for your words too, I wish you all the best.

  • @CryptMhg
    @CryptMhg 4 года назад +1

    i was waiting for this wooo thx Matt

    • @MattAspland
      @MattAspland  4 года назад

      Happy to provide! Thank you :)

  • @abdullahsohail5395
    @abdullahsohail5395 4 года назад +1

    nice video dude keep making these kinda videos to sort out our problems

    • @MattAspland
      @MattAspland  4 года назад

      Thanks man, I'll always continue helping out :)

  • @FioraBirkes
    @FioraBirkes 3 года назад

    Thank you so very much my good sir! Your tutorials are super helpful for a beginner like me!

  • @kazmack9968
    @kazmack9968 2 года назад

    Is there a version of this for UE5? The widget referencing at 10:30 does not want to connect the "Get CrosshairREF" to any "Set isFriendly" variable.
    The error I get when trying to connect them is:
    *[ USER Widget Object Reference is not compatible with W Cross Hair Object Reference ]*
    (I called my Widget BP "W_Crosshair")

  • @MagimanD
    @MagimanD 11 месяцев назад

    Hello great tutorial like always. I want this to be different based on the weapon is plugging the range instead of the trace length? or have a different variable within the gun.

  • @G4AGamingForAll
    @G4AGamingForAll 2 года назад +1

    Hi 👏 i'm having a difficult time in fixing my TPP crosshair with the player character !
    How can I fix that !?

  • @rickman1993
    @rickman1993 3 года назад +2

    I implemented this into my game and, for some reason, if you have a floating object and then you move away from it to where the crosshair is pointing towards the sky, it stays as one of the changed colors until you point it at an object.

  • @svenrawandreloaded
    @svenrawandreloaded 3 месяца назад

    I generally love your vids and you've helped me a lot over the years, but I feel like we don't need a 17 minute video to explain doing a line trace on the event tick (or delay loop which is basically just as expensive although mostly negligible I guess) lolol.

  • @ManthosLappas
    @ManthosLappas 3 года назад

    Thank you SO much for this! You are a savior :) Amazing and helpful tutorials you have there, very appreciated! Kind regards!

  • @njghtcrawler7899
    @njghtcrawler7899 6 месяцев назад

    Great tutorial/channel! but I am having some issues but I am trying to do something a little different. I have a TDShooter so making the crosshairs at the center the of screen doesn't work for me. How can I get this alternating crosshair effect but with the cursor location as crosshair?
    Second issue I am having is my line trace is hitting the target but registers "neutral" for a few frames, then "enemy" for a few frames, and cycles like this continuously. However, I can see the debug of my line trace never breaking contact of the target. Any ideas to fix?

  • @flyingroads3498
    @flyingroads3498 Год назад

    great. will be interesnting to animate those, I dont know made them move a little side to side, rotate?

  • @hungry_pig
    @hungry_pig 3 года назад

    I have a question. The crosshair changes its image not what I wanted time to time. Sometimes it is neutral and sometimes friendly. The Crosshair Check BP doesn't work correctly. Pls Help

  • @things8602
    @things8602 2 года назад

    for me my enemy and friendly cursor become really small and i have no idea how i could fix it

  • @JamesGascoyne
    @JamesGascoyne 4 года назад +2

    I'm gonna make a shooter prototype now haha

    • @MattAspland
      @MattAspland  4 года назад +1

      Ha nice one James, I bet it will be amazing!

  • @Gcaptain14
    @Gcaptain14 4 года назад

    Thanks bro for uploading this video it will help me a lot and sorry for the late reply going night in ny country sorry again and thank you

    • @MattAspland
      @MattAspland  4 года назад

      No problem man, happy I could help you out!
      No need to apologise either, thanks for coming and watching!

  • @arielshtern4125
    @arielshtern4125 3 года назад

    Great tutorial! Thank you!!!
    Just one thing (PLS help)
    The crosshair s changing to the desired state, but sometimes stays in the last state when I look away from the target. It's kind of random and not always happening. I have to "re-hover" on the target to get it to return to neutral.

  • @pangeaedit8868
    @pangeaedit8868 4 года назад +2

    Hey Man When try use delta time instead of a custom event i get lot of errors "none trying to read proeperty callfumc_breakhitresult_hitactor_1"...any help?

    • @MattAspland
      @MattAspland  4 года назад

      Hey, I think this will be happening because you will be trying to access the break hit result before it actually has any values inside of it, this is why we used a custom event. Is there a reason you need to use delta time instead?

    • @pangeaedit8868
      @pangeaedit8868 4 года назад

      @@MattAspland it doesnt seem to work if i use a custom event and the re call it again with a delay, but at the end if i at least over something before quitting the game i get no errors...so it shouldnt be that much of a problem right?

    • @wouterjacobus5010
      @wouterjacobus5010 4 года назад +1

      @@MattAspland i get the same error, it is when hovering over a box brush for some reason. You know why this happens?

  • @dawnrigel4255
    @dawnrigel4255 3 года назад

    If anyone has trouble with their crosshair not changing colors or the line trace not detecting your targets, make sure the object you want to be detected has "Visibility" set to "Block" in the mesh's Collision responses lol.

    • @Hpalhazred
      @Hpalhazred 3 года назад

      After the delay, Add two connected Boleans, one to hide ''Enemy'' and one to Show The Bolean with neutral Xhair.

  • @ninjasoraxx2
    @ninjasoraxx2 3 года назад

    im having an issue where my icon defaults to the enemy crosshairs rather than the neutral crosshairs

  • @glebnersisyan6127
    @glebnersisyan6127 4 года назад +1

    Hey could you please make a tutorial on car sounds?

    • @MattAspland
      @MattAspland  4 года назад

      Hey, I could look into that yeah :)

  • @krzychul_7968
    @krzychul_7968 4 года назад +1

    Hello can you record a tutorial ? how to add weapon and equip and drop the weapons

    • @MattAspland
      @MattAspland  4 года назад

      I've got that on my list yep, so I definitely want to :)

    • @krzychul_7968
      @krzychul_7968 4 года назад +1

      @@MattAspland thanks i have project to do and i need help beacouse im bad to do games sorry for my bad englisch xD

    • @krzychul_7968
      @krzychul_7968 4 года назад +1

      @@MattAspland my firt game what i do it is in notepad 🤣🤣 and i must do a 3D game maybe counter strike ;)

    • @MattAspland
      @MattAspland  4 года назад

      @@krzychul_7968 No problem, and haha sounds great! You'll do great, I wish you all the best of luck with your games! :)

    • @krzychul_7968
      @krzychul_7968 4 года назад +1

      @@MattAspland maybe :)

  • @martinwallroth6208
    @martinwallroth6208 2 года назад

    Hey Matt, thx for your top-tutorial. One Question: How can i add an tag to the enemy or friend (when the player overlaps the "enemy" or "Friend") and remove the tag from them (when my player is end overlapping the "enemy" or "friend")

    • @martinwallroth6208
      @martinwallroth6208 2 года назад

      so more or less, i wanted to know , how i can use your tutorial (changing the crosshair) when the player is in reach of the enemy or friend..

  • @SanneBerkhuizen
    @SanneBerkhuizen 4 года назад

    Nice feature.

  • @joebigley2843
    @joebigley2843 4 года назад

    hi mate, i want to follow one of our old jumpscare tutorials but I have no clue how to download your ghost girl, not sure if I'm being stupid aha

    • @JamesGascoyne
      @JamesGascoyne 4 года назад

      Pretty sure it's on mixamo. There are some good animations on there as well

    • @MattAspland
      @MattAspland  4 года назад +1

      Hey no worries man, it's one I made myself on Fuse, I'll leave a link here :)
      drive.google.com/drive/folders/1iEyADR1Hptw87J25DUskJZU3Rtfpbg-v?usp=sharing

    • @joebigley2843
      @joebigley2843 4 года назад

      @@MattAspland thank you man, keep up the great work!

    • @MattAspland
      @MattAspland  4 года назад +1

      @@joebigley2843 Thanks bro!

  • @gamerdweebentertainment1616
    @gamerdweebentertainment1616 3 года назад

    Looking 21st January... I don't remember this... 2021... still don't remember... oh right it's 2022 now -.-'

  • @mithunmmurthy1473
    @mithunmmurthy1473 4 года назад

    hey can you please make healing with animation for a shooting game its for game jam plz do it asap

    • @MattAspland
      @MattAspland  4 года назад +1

      Hey, yep of course. When is the deadline for the game jam? Also, what specifically would you like? For example, you press a button to heal, it happens naturally, you are near something, etc. Plus what kind of animation?
      Also, in the meantime I do have a campfire healing tutorial. Let me know if that is of any help to you! :)
      Campfire Healing: ruclips.net/video/1j809r4X2EQ/видео.html

    • @mithunmmurthy1473
      @mithunmmurthy1473 4 года назад +2

      @@MattAspland I need Healing like in fortnite deadline is 20 Jan with animation on button press

    • @MattAspland
      @MattAspland  4 года назад +1

      @@mithunmmurthy1473 Okay, I can look into that. That campfire video not really relevant or helpful then?

    • @mithunmmurthy1473
      @mithunmmurthy1473 4 года назад +2

      @@MattAspland yes I need the healing like in multiplayers like press buton 👍🏻

    • @MattAspland
      @MattAspland  4 года назад +1

      @@mithunmmurthy1473 Okay sounds great, I should have a video coming out at 6PM GMT today which should hopefully help with that. I've just finished editing it now :)

  • @sfm_pakic3527
    @sfm_pakic3527 2 года назад

    That the most difficult tutorial i ever see