x

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"

Remove Default Gun from First Person Template.

If I can't set up True First Person, I might as well figure out how to reset the normal First Person Template. You see I don't want the default gun. I want the arms, and want to make these arms able to pick up new weapons. For some reason, trying to remove the gun made everything go bonkers and cause the Engine to crash, not to mention a sideways gun. If anyone can tell me how to delete the default gun to allow weapon pickups, please let me know.

I'm ready to give up. Or switch to CRYENGINE.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 31 '15 at 12:26 PM in Blueprint Scripting

avatar image

NorseHorse1492
9 8 16 17

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

1 answer: sort voted first

Hello,

Deleting the Default Gun requires a small amount of extra work to get the blueprint to compile. Here is what you need to do:

First, remove the FP_Gun mesh from the Component Tree in the FirstPersonCharacter blueprint.

alt text

Then, you'll need to go into the blueprint's Event Graph and remove the blueprint that spawns the projectile from the gun:

alt text

Finally, go into the construction script and remove the AttachTo node as well as the FPGun and Mesh 2P references:

alt text

Using this method to remove the gun and all of its references allowed me to PIE without any errors.

Have a great day,

Sean Flint

defaultgun.png (12.6 kB)
removethis.png (123.4 kB)
alsoremovethis.png (77.6 kB)
more ▼

answered Dec 31 '15 at 01:05 PM

avatar image

Sean L ♦♦ STAFF
44.2k 485 149 436

avatar image MrQoZy Oct 11 '16 at 12:03 AM

IT DOESNT WORK! the graph is empty., im on 4.13 pleaseeee help! thank you

avatar image Sean L ♦♦ STAFF Oct 11 '16 at 01:53 PM

If the graph is empty, I'd imagine you're using a code project? If so, you'll need to go into visual studio and comment out all the code that references VR_Gun and FP_Gun in your "ProjectName"Character.h and .cpp classes.

That should get you your desired results. However, it's always good practice to start with a blank project and code the movement and camera controls that you'd like from scratch!

Have a great day

avatar image Tonystark1226 Sep 28 '17 at 03:51 PM

thank you very much it worked for me :D

(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