x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can i change crosshair into hand when im looking at interact object?

I want to change crosshair into hand when im looking at interactive object, so i can see which object is interactive on the scene. Please post some screenshots that would help me do it. Thank you all for your time.

Product Version: Not Selected
Tags:
more ▼

asked Feb 19 '15 at 02:31 AM in Blueprint Scripting

avatar image

Thorux06
17 5 6 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

once you know if the object is interactive in your HUD blueprint add an if statement, If the object is interactive draw texture(and make the texture a hand in the middle of the screen) if it's false then draw the normal crosshair.

more ▼

answered Feb 20 '15 at 12:16 AM

avatar image

ShrewGlue
419 97 83 106

avatar image Thorux06 Feb 20 '15 at 01:16 AM

ok, but how can i check if the object is interactive?

avatar image ShrewGlue Feb 20 '15 at 01:17 AM

What does interactive mean? You'll have to specify.

avatar image Thorux06 Feb 20 '15 at 01:23 AM

I make the blueprint interface which im adding to any blueprint props to make the object interactive (i can interact with the object, for example to switch the light on and off in the lamp). and when i move my crosshair on the lamp i want to change it to image of a hand.

avatar image ShrewGlue Feb 20 '15 at 01:29 AM

I still don't understand, but maybe what you want to do is use a line trace like this, every tick: alt text Then use an if node to compare if actor == [Any interactive BP] then wire that into an if statement, and that into a boolean setting it true. If the if statement is false than set the boolean to false.

I forgot to mention this should all be in the player's blueprint.

avatar image Thorux06 Feb 20 '15 at 01:58 AM

Thanks that helped me to get this done.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question