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"

4.16 Attach and Detach Static Mesh from Socket

I've watched a few tutorials and posts about how to get an item, in my case a lantern, attached to my player by using sockets. But what I don't understand is how to remove that static mesh from my character. Here is what I have alt text

So, the question; How do I remove this lantern, this static mesh from the character? Any help would be amazing!

Product Version: UE 4.16
Tags:
capture.png (132.9 kB)
more ▼

asked Aug 15 '17 at 09:13 PM in Blueprint Scripting

avatar image

KJHille
1 1 2 3

avatar image KJHille Aug 15 '17 at 09:14 PM

Additional note, I looked before posting, but I guess because of version changes, I can't find the tools that other people have used. Please, prove me wrong, I won't mind the answer :)

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

1 answer: sort voted first

It looks like you just need to plug the lantern as your target in the DetachFromActor instead of the lantern's owner.

more ▼

answered Aug 16 '17 at 02:55 AM

avatar image

RimmyD
2.5k 97 15 96

avatar image KJHille Aug 16 '17 at 07:09 PM

That's what I've seen but it doesn't actually allow me to connect the lantern to the target spot. That's where my problem is.

The only way that I've been able to get it connected is with that "Get Owner"

avatar image RimmyD Aug 18 '17 at 07:17 PM

I'm confused, in the original post you said your problem was just disconnecting the attachment. In this reply you say you cannot attach it except with Get Owner but your original post does not use Get Owner to perform the attachment.

From your images it seems you are only passing the owner into the detach, which should not be needed and according to your post does not work anyway.

Two steps here, be sure H is being pressed, add a PrintString after it but before the detach and see if it fired. Next, make sure you lantern variable is properly defined, make another PrintString and print out the DisplayName of the lantern variable.

I don't know how you spawn your lanterns but the owner could be null, another actor, or maybe even the World if it was placed at Design Time.

(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