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"

Set a float's value from a texture's color near the player


I'm trying to use an image file that I place in my level. Basically, this image file is to be used as a map to control some data in my game.

I want a float to react to the player's position on this texture. So if you're standing on green, it sets the float to 1. If your character is standing on red, it sets the float to 2, etc.

This way, I can easily control my environment by loading an image file that will control some parameters in the world as you move.

Any ideas how I can achieve this?

Product Version: UE 4.15
more ▼

asked Jun 08 '17 at 02:42 PM in C++ Programming

avatar image


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

1 answer: sort voted first

I think you may want to look into level streaming. If not, you are probably looking to create a BP that you can place in each section that when it overlaps (Actor Begin Overlap) with the character, it sets that characters (float) variable.

more ▼

answered Jun 11 '17 at 12:21 PM

avatar image

366 3 2 12

(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