I trying to set up easy "Teleport/Respawn system with Teleport node or Set Actor Location but none of them works on overlap. when i print string the results are seems good to me
Where is the problem? why cant move the actor?
1st pic:
- how did you reference the
Spawn Location
actor in the first pic? - do you get any errors? Accessed None?
- does the cast fail
2nd pic:
- does the cast succeed or fail?
- how many actors does the array spit out?
Also, you enabled Sweep
- the actor will not teleport, it will detect collision and stop. Is this intentional?
as a varriable
i got error : Blueprint Runtime Error: “Accessed None trying to read property SpawnLocation”. Node: Set Actor Location Graph: EventGraph Function: Execute Ubergraph BP Teleport Zone Blueprint: BP_TeleportZone
Cast is working
Creating a variable is one thing, assigning it value is another. What if you had 10 spawns, which one does the variable refer to?
I’ve updated my original post, see if you can answer the questions.
Please also answer the questions from the original post. Nothing adds up here at the moment. Too many unknowns.
Here is what i printed
Without knowing where this is coming from, it does not really help.
Perhaps there’s no need to complicate things with referencing actors. Consider the following:
- a teleporter actor with a box and an arrow:
- I’ve placed the actor in the level and moved just the arrow - that’s where we teleport to:
- we step into the box, we teleport to the arrow:
And if you want to respawn, look into how the Game Mode handles it:
It takes advantage of the Player Start, pretty handy.
i got error : Blueprint Runtime Error: “Accessed None trying to read property SpawnLocation”. Node: Set Actor Location Graph: EventGraph Function: Execute Ubergraph BP Teleport Zone Blueprint: BP_TeleportZone
This is a basic and the most common referencing error. The variable you created has no value, you’d need to flag it as Instanced Editable
and pick the actor from the scene.
i did the blueprint like u do with the arrow but still not working
maybe the problem with my player character? im using a pawn class actor
Print string says its collideing with the box but no teleportation…
Could you show the updated script?
maybe the problem with my player character? im using a pawn class actor
Could be, you’d need to explain it. Test if the cast fails or succeeds when you enter the collision volume.
i tryed your sollution in new project and its working fine with tps character
Cast is succesfull and i get resoult on collision as well
im wondering should it because of its a static mesh, i mean should i change someting in the deatils tab?
i got solution, if i disable Simulate Physics its teleporting, but it’s necessary for movement so what can i do?
Teleporting physics simulation is fine. Could you show the pawn component hierarchy? I sense the simulating component was not placed at the root of the actor.
WORKING!!!
Thank you so much!!! <3
such a annoying mistake…