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"

[Solved] FPS Weapon Visible Only When Unpossessed

I'm working off the FPS tutorial that is included with the engine. I separated out the gun from the character class into its own C++ class. I created a Blueprint from that gun class and made it so the FirstPersonCharacter blueprint spawns the gun using the gun blueprint. I use AttachToComponent to connect the gun to the socket I created on the mesh. When I run the game in the editor the gun isn't visible, when I click "Eject" (unposses) the gun suddenly becomes visible. When I posses the character again the gun isn't visible. Also when I shoot the shots aren't visible either even though they interact with the world as if they're there. I have tried dragging the arms of the character out away from the camera to see if one of the arms wasn't being rendered and therefore the gun but the arm was there and the gun wasn't. Any ideas what may be causing this?

Product Version: UE 4.13
Tags:
more ▼

asked Oct 06 '16 at 12:08 AM in Rendering

avatar image

timwlake
11 1

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

1 answer: sort voted first

I figured it out. The gun was set to only the owner can see it and the owner wasn't set to the player holding the gun. So once I used SetOwner and passed in the owning character, I could see the gun. The sphere bullets still aren't visible but they're probably the same issue.

more ▼

answered Oct 07 '16 at 06:24 PM

avatar image

timwlake
11 1

(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