How to random teleport an object more then once in stage using target points?
Hello. So I am trying to make a selected actor in my map to randomly change spot using target points and the problem i'm coming with is that with my setup below the action only works once... Even with a retriggerable delay the teleport wont go twice. I;ve even checked if the random was properly happening for the target point indexer and it changes the index every time. Anyone know what i'm doing wrong???
Thanks in advance.
asked Jan 11 '17 at 08:16 AM in Blueprint Scripting
Alright so this is what I've come with that works around my problem. It might actually work in level blueprint as well but ive made it work in the object itself''s blueprint.
The real problem was the simulation of physique that wouldn't work i think because 3 out of four times I thought the object wasn't appearing at all when in fact it was going trough the floor on teleport. So when i removed the simulate physic it would work with the set actor location. The other problems was the length for my array that wouldn't work so ive changed the array to a variable instead.
Instead of target points i added static mesh instead and made them into an array and the object will teleport to them instead. Just set the static mesh to hidden in game and no collision and voila! Works like a charm:P we can close this one. thank you all for the help:)
Important: For those that really want to implement simulate physic then just add a blocking volume under each teleportation static mesh and the actor shouldn't go trough the floor. Cheers all:P
answered Jan 12 '17 at 05:37 AM
You want the normal delay I think.
Print the return boolean of the teleport, does it always say true?
Try to use "Set actor location" instead of teleport and check the "Teleport" bool
Does this help?
answered Jan 11 '17 at 09:25 AM
answered Jan 11 '17 at 10:20 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here