Minimap max/min height

Try adding a branch to each “Num-/+” Key Event. Right between the key event and the Set TargetArmLength.

For the condition you would get the TargetArmLength, or use the one you already got and used for the minus and plus node. Drag out the Length and type “Greater” or “Less”. This creates a node that checks if the value is greater or less something. There should also be a node “greater and equal” and “Less or equal”. There you put in the minimun and maximum height. After that, you plugin the red Bool return of the “less” or “greater” node on each of the branches.

If you don’t understand what i told you, just ask me. I can give you a picture of the BP. :smiley: Would have done it now but i just joined into a game.

Hey guys,

i made a minimap with the help of a tutorial, but i want a maximal and minimal hight so you cant zoom out of the map or zoom into the character

here is my blueprint:

thanks in advance

a picture would be realy helpfull

take your time ^^

also thank you for the quick response

the minus and plus thing is because Num- should zoom it out so i add an value to the targetarmlength

also thanks for the picture and the explanation

I don’t know why you add 100 if the player presses MINUS on the Numblock, but i guess that’s something about how the system works.

So here is the picture:

http://puu.sh/cYSGt/cb7722a982.png

To explain this a bit:

I took your setup and added 2 of those branches, or "if"s in c++, to it. The condition for them is one time “If TargetArmLength is less than 500, than add 100”. and “If TargetArmLength is greater than 0, subtract 100”. So as soon as TargetArmLength hits 500 or 0, Num- or Num+ won’t add or subtract more.

You would need to use numbers you want, because i don’t know if 0 and 500 are the right maximum and minimum values for your minimap.