How do I throttle in direction but go opposite of that direction? [SOLVED]

Say I got point A.
and I got player A

Player A cannot move around with his/her own controls.
When the timer hits 0:20 sec, it will trigger Start Forcing Throttle in Direction.
I want that direction to be the direction from Event Player (Player A) to Point A.

But instead of having them throttle to point A, I want them to throttle away from point A. While they are facing random directions. Cause I already tried throttling backwards when they are forced to face point A. But I want them to move away from point A but keep their free facing.

Magnitute -1 is again here standing still, but that was probably obvious.

Any idea how I can make them move away from a point or player? Using Start Forced Throttle in Direction

Thank uuuu

You can multiply a vector by -1 to get the same vectors, but the sign of each component is changed

You could also use direction towards point -> player instead of player -> point

2 Likes

I checked, the direction point -> player works perfectly. Simpler than inverting the vectors (3).

Thank you! You wouldnt happen to know if there is something like edge detect?

To detect and edge you could use a ray cast hit position that goes downwards in front of the player, and if the ( Y comp of the player - Y comp of the ray cast)>2, it would mean there a cliff, replace 2 by what you consider the height for a cliff, and then you could detect edges

Thanks, oh and one more thing… Can you get an array of objects like traps, turrets and bob?

In the current version of the workshop, you can’t detect object, such as turrets, traps, shields, projectiles, and more.
I don’t think B.O.B is counted as a player, but I’m not sure so you could test that out

You can’t interact with objects at all, the best you can do is lake them stop ray casts, nothing more.
You can’t damage them, destroy them or heal them.