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"

Spawned actor dont Attach

I have been working on a RPG and reached the stage of attaching equiped itens to the character, the problem is: After spawning the actor, it just dont attach to actor/socket.

alt text alt text

No matter what socket i use, AttachToComponent or AttachToActor, Snap to Target, i tried MANY options but it just spawns and act like the Attach command dont exist, the only difference is if i disable or not the collison: alt text alt text

I followed this [old] tutorial for this: https://www.youtube.com/watch?v=0GlC4z7LIWU

I really need some help, if anyone can help me out i would be very grateful.


Product Version: UE 4.21
attach.png (1.4 MB)
attach2.png (1.1 MB)
attach3.png (1.2 MB)
more ▼

asked Feb 28 '19 at 10:12 PM in Blueprint Scripting

avatar image

3 2 1 2

avatar image BrunoCaxito Mar 01 '19 at 01:39 AM

During "Play in Editor" mode, if you press F8 and check the "World Outliner" panel, does the actor that contains the socket has the spawned weapon nested?

Can you try unpinning the GetActorTransform node and split the "Spawn Transform" parameter from the "Spawn Actor" and test?

PS: Do you speak portuguese?alt text

capturar.png (246.3 kB)
avatar image Spartani Mar 01 '19 at 02:16 AM

Boa noite Bruno! Quando ejeto do personagem e vejo a transformação do ator spawnado ele está no lugar certo mas o Mesh não, quando mudo o transform do spawn pro socket ele spawna no lugar correto mas a colisão faz o ator ser "repelido", voando pra longe do personagem. Meu Attach to Actor ou Attach to Component não faz o ator ficar "preso" ao personagem.

alt text

attach4.png (1.4 MB)
avatar image BrunoCaxito Mar 01 '19 at 03:05 AM

Quanto à colisão, me parece bem estranho, vai precisar verificar as propriedades de colisão e física de cada um.

alt text

O objeto continua sendo repelido? E com "RTS Parent Bone Space"?

0.png (126.6 kB)
avatar image Spartani Mar 02 '19 at 05:17 PM

A solução foi um pouco mais fácil do que pensei: 1. Fazer o Mesh ser a raíz do ator spawnado, antes era componente de cena 2. Desabilitar a física via blueprint antes de anexar ao socket Simples assim. Obrigado pela ajuda!

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

1 answer: sort voted first

If someone have the same issue, here is how to solve it:

The mesh must the root of the spawned actor Before attaching the new actor, get the mesh reference and disable Simulate Physics

Nice and simple.

more ▼

answered Mar 02 '19 at 09:34 PM

avatar image

3 2 1 2

(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