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"

Make player shoot a projectile that collides with objects?

Exactly as the title says, I'm making a duel grapple hook that needs to be fired, one from each side of the hip. I them to fire toward the middle of the screen, where the crosshair would be :) (I have the third person layout, with the camera inside the characters head).

Product Version: UE 4.11
more ▼

asked Apr 13 '16 at 07:37 AM in Blueprint Scripting

avatar image

1 1 4 2

avatar image Taydra Apr 13 '16 at 08:21 PM

So clarification, you say that it's a 3rd person layout but the camera is in their head. Is the game played as a 1st person game or a 3rd person game? And are you trying to get the grapple hooks to meet at the crosshair point or run parallel toward that point?

avatar image Dizziee Apr 15 '16 at 04:17 AM

It's played as a first person game, and I would like each hook to be set slightly off the crosshair on the corresponding side. So The 'Q' hook will be slightly left of the crosshair etc...

avatar image Taydra Apr 15 '16 at 07:28 PM

Cool thanks for the info, now I'm no expert but I do think I can help some with this. Don't panic if it takes me a day or so to give you something to work with.

avatar image Nick Jackson Apr 15 '16 at 12:46 PM

So what have you tried so far and where exactly are you stuck? Seems like a very easy problem to solve...

avatar image Taydra Apr 15 '16 at 07:30 PM

Hey be nice, things you think are easy now weren't so easy when you got started.

avatar image Dizziee Apr 15 '16 at 10:40 PM

I don't mind, I have almost no experience with ue4 so I have no idea how to go about this. I haven't really tried anything because I don't know what to try, that's why I'm here. Also I will eventually want to have the player reel into the center of where the 2 hooks are by holding space :P

avatar image Nick Jackson Apr 16 '16 at 02:32 AM

Start with First Person shooter template. Modify that to have two weapons that shoot projectiles. Position them where you want them. Then you can work the mechanics into "grappling hooks"

avatar image Dizziee Apr 17 '16 at 07:45 PM

Yeah that sounds good I guess? I still need to know how to make the projectiles stick :P as well as instead of firing one projectile with mouse1; I wanna shoot one from the left with Q and one from the right with E, also the projectile unsticking and coming back to the player before disappearing would add a really nice effect.

avatar image Nick Jackson Apr 18 '16 at 11:14 AM

You can change the trigger from Left Mouse button to "Q". You can also look at FirstPersonProjectile blueprint and change the logic for Event Hit. Delete everything in that BluePrint and then call Stop Simulatingalt text

1.png (69.4 kB)
avatar image Dizziee Apr 18 '16 at 12:10 PM

Awesome! I'll test it out!

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

1 answer: sort voted first

Sorry for the delay but here's what I've got for you. This is the first part added into your player character. alt text

Part 2 for the player character. alt text

And here is the "hook" you need to add a projectile movement component to the mesh for the hook. Then change a couple things about it, first the initial speed needs to be a pretty high number and then set gravity scale to 0 so that it doesn't fall in the middle of flight. alt text

For the collision sphere you add to the hook you need to change the collision preset to ignoreOnlyPawn, this makes it so you won't hit players including yourself. This happened to me on spawn and the hooks never left the launch point. Also make sure this setting for your mesh is set to noCollision so that only the sphere is stopping it when it hits something. alt text

It's not perfect but I think it'll help. I tried to comment all the code but please ask if anything is confusing or unclear so I can explain further.

more ▼

answered Apr 18 '16 at 08:49 PM

avatar image

15 3 4 7

avatar image Dizziee Apr 19 '16 at 04:12 AM

Taydra would you be able to send me the project?

avatar image Taydra Apr 20 '16 at 05:56 PM

So being that this this was kinda my 2nd project in unreal I don't know how to go about doing that. Now that's not a big issue I'll do some research and figure out if I can, but I'm going busy the next couple of days so it may take some time.

avatar image Dizziee Apr 21 '16 at 12:23 AM

No problem, do you have steam, skype, or something like that to make it easier to communicate?

avatar image Dizziee May 01 '16 at 12:40 PM

You still there?

avatar image Taydra May 09 '16 at 06:30 PM

Sorry life became even more busy than I was expecting, Here is the folder (complete) on google drive. Copy it to your comp and it should be playable. :) Again sorry for the delay.

avatar image Nick Jackson May 01 '16 at 12:43 PM

@Taydra - Zip up everything except the following folders:

 * Binaries
 * Build
 * Intermediate
 * Saved

That way, the content should be minimal. Also note whether or not you need to include Starter Assets. It’s far easier to exclude them and ask the end user to add that manually before attempting to Run the project.

avatar image Taydra May 09 '16 at 06:34 PM

@Nick I'm confused by what you mean in that last part. Wouldn't if I had starter content enabled those assets be a part of the content in the folders that I was then zipping together?

avatar image Dizziee May 09 '16 at 07:16 PM

Hey Taydra thanks for that, but the folder seems to be empty :P would you be able to create a media fire link?

avatar image Taydra May 09 '16 at 07:30 PM

Hey sorry it seems my computer is being slow and is still syncing the folders to the drive. I'll post again when it says its done.

avatar image Taydra May 09 '16 at 07:32 PM

Ok it wrapped up now.

avatar image Dizziee May 09 '16 at 07:47 PM

Hmm It still says it's empty?

avatar image Taydra May 09 '16 at 07:52 PM

Why don't you find my username on steam so we can talk better to figure this out. :)

avatar image Dizziee May 09 '16 at 09:11 PM

Yep, my steam name is Spinziee :)

(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