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"

Drag back object and release to apply force.

So at first I had a problem with clicking to drag an object with a mouse but it got solved at this link https://answers.unrealengine.com/questions/327389/click-to-drag-actor-not-working-correctly.html

I have run into another problem though when I click and drag the object back and release the mouse button it won't apply force to the object. What I am trying to achieve is an angry birds style of shooting. I asked it in the other question but was told to start up a new question and also was told that some of this would help

"I recommend setting an initial point variable, and an end point variable once touch is released. Then call a new custom event and use those variables. It will make your blueprints MUCH easier to follow and you'll be glad you did as you progress.

I think you want to use Get Length Vector 3 but I don't have my engine up in front of me. Then you can add a multiplier onto the result."

The only thing is I am still new and learning blueprints and don't really know where to start with this. Below is the blueprint I have so far.

alt text

Product Version: Not Selected
untitled.png (447.1 kB)
more ▼

asked Nov 04 '15 at 11:20 PM in Blueprint Scripting

avatar image

38 20 17 21

avatar image Distul Nov 05 '15 at 12:14 AM

Try something like this

alt text

I don't remember if get direction returns 0/1 values. EG: 1, 0, -1 rather than 10, 0, -15. If it only returns 0/1 you'll want to use the Vector Length node. If it returns digits other than 0/1 you can just multiply the result by a float.

force.png (102.7 kB)
avatar image ThatGuyMiniB Nov 05 '15 at 01:54 AM

Do I plug in the mouse initial and mouse end into the beginning slots of get direction vector?

avatar image ThatGuyMiniB Nov 05 '15 at 02:03 AM

So this is what I have right now it looks kind of crazy but it still isn'talt text firing the Get direction vector after it multiplies by the force seems to be working as it prints out values like x:2000 and z:2000 for example but it still won't have the force applied to it.

alt text

screenshot (9).png (771.1 kB)
avatar image ThatGuyMiniB Nov 05 '15 at 02:57 AM

Ok so a little update! I increased the force to over 2million and it is now appliying the force the only thing now is some of the directions it shoots in is messing up. So for example if I pull the ball straight backwards instead of shooting straight it will shoot straight up into the air.

avatar image Distul Nov 05 '15 at 03:43 AM

Yeah, it might have something to do with the fact that your blueprint is a pile of spaghetti.

Here's something I made that seems to be working fine and is much more organized :P

Also your screenshots are very blurry some reason.

alt text

alt text

avatar image ThatGuyMiniB Nov 05 '15 at 07:07 AM

Amazing! It seems to be working perfectly now :D Btw how did you put in the little spits in the blueprint wires to help keep it cleaner? Also how does clamping a vector work?

avatar image FinalDingo Nov 11 '16 at 12:25 PM

In [4.13.1] I cannot find;

  • Launch Actor

  • Return Cursor to Screen

  • Return Node

Anyone know the new names for these options?

avatar image oppne Jan 18 '17 at 12:43 PM

Cant seem to find these still: Launch Actor

Return Cursor to Screen

Return Node

avatar image oppne Jan 18 '17 at 01:01 PM

Nvm, this is a function which you make yourself on the first picture, that you make pure on the right side after you made it

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The splits are done by using "Add Reroute Node" when dragging out your pin.

A vector clamp works by setting a minimum and maximum to the vectors length.

Each axis of the vector will be multiplied by a value which will maintain the vectors direction but keep the length within the specified range in Clamp Vector Size.

Vector lengths increase as the values within vectors do. In your case a longer length would mean a larger launching effect.

You could also clamp each float from the vector and rebuild the vector but I don't recommend this because it would create weird trajectories.

more ▼

answered Nov 05 '15 at 04:37 PM

avatar image

536 33 22 39

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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