I’m creating a dart trap/pressure plate system with projectile movement where you step on a plate and it fires a series of darts. The darts fire correctly but when they attach with the player they don’t attach to the correct socket and sometimes disappear entirely. The print string also returns none most of the time
My goal is to
fire the dart
When colliding with character, attach to the hit bone
push character until dart hits a wall
character and dart stuck to wall and then character dies
I’m using a component hit event and passing the nodes into my function below
Maybe the collision is happening for something other than your character - maybe a collision capsule or something? You could add a printstring to display the Hit Actor.
ok I changed both Location and Rotation to Snap to world and now it seems to attach to the correct area. Only problem is when it hits the player the projectile just stops. All I changed was this to make it snap correctly and I change the attach to Actor to Component
Doesn’t seem to matter what I change, when it hits the player it stops the projectile entirely even when all the nodes are disconnected or eve when the hit event is removed
It sounds like you’ll need to ensure the projectile doesn’t actually hit the character (turn off blocking for everything except a custom trace channel maybe)
ok, what I ended up doing was removing most of the collision on the dart itself and just added another collision sphere on-top and that seems to do mostly what I’m looking for, however still some issues here.
For some reason, the dart loses all velocity on hit, still not entirely sure why but this is my workaround for that
for the Dart itself I’m only checking collision for WorldStatic
My main problem now is that sometimes the darts will not attach to the player and secondly the player most of the time goes through the wall like this vid, any suggestions for these?
yeah - multiple levels of collision can get interesting!
Maybe a work-around would be to move the collision sphere back a bit once the player and darts are attached?