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 attach a ball to my player hand and make him throw it . basically i want to create a baseball/cricket like game . and i want to use the ball to drive my Ai

cricket/baseball show me a way to start with

Product Version: UE 4.11
more ▼

asked Jun 20 '16 at 06:04 PM in Blueprint Scripting

avatar image

1 1 2 6

avatar image saeedc Jun 20 '16 at 11:11 PM

I have already done it in an old project. I tried to open that project and send you my graphs but that was broken and won't open.

now I can tell you what I did step by step but before that you must learn basics of shooting a projectile so take a look at this tutorial video and tell me when you have learnt it link text

avatar image skkhan Sep 14 '16 at 03:08 PM

i have done all the basics can you guide me ?

avatar image skkhan Sep 14 '16 at 03:06 PM

how would physics help me and how would i drive my Ai ... wouls i need some blocking volume for the stadium ..

avatar image saeedc Sep 14 '16 at 03:40 PM

Add a socket to your character's hand where you want to spawn balls from

attach a ball to that socket.

If you have a throwing animation add a notify to the frame which the ball must be thrown from there.

use that animation notify as an event to spawn balls.

destroy that already attached ball before spawning the new ball so it looks like he throws the ball in his hand.

I will tell you more about it later. now I don't have time :))))

avatar image skkhan Sep 14 '16 at 04:13 PM

i have done that attached the ball two a thrid persons hand socket

avatar image saeedc Sep 14 '16 at 06:44 PM

so try other steps. use an animation notify to spawn balls from that socket

avatar image Rotlaust Sep 14 '16 at 07:46 PM

Would it be best delete the current actor in the hand and spawn another one in that animation key keyframe? Or couldnt you just use the notify to detach the ball actor and add a projectile movement to it? I dont have UE4 open right now to try it but in theory wouldnt this be cleaner then deleting then respawning the actor on every throw?

avatar image saeedc Sep 14 '16 at 08:01 PM

I have never done some thing like what you said.

I use the same method for throwing things or equipping different guns

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

0 answers: sort voted first
Be the first one to answer this question
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