[ACS] SetActorPosition for putting an actor in FRONT of another?
Posted: Sun Dec 02, 2018 10:42 pm
So i've been fiddling around the idea of a grappling hook similar to ones you'd see on roadhog from overwatch, scorpion from mortal kombat and so and so...
But the problem i encountered is that stuff like Loreshot is unreliable and only works on lightweight actors, and this comes with the issue of stuff getting in the way and so on...
So my alternative solution was to make the actor teleport in front of the calling actor once a projectile lands and gets a tracer. But trying to use A_Warp didn't go anywhere since the function to teleport the affected actor isn't available in Zandro currently... And even in GZDoom my hack didn't work so well...
So i decided to fiddle around with SetActorPosition cause this seemed to be the most convenient solution at the moment, using some "set activator to use" hacks, get actor X, Y and such...
But now i came with the following question:
If SetActorPosition is used to teleport a player or monster in front of the calling actor, how would you make it so it is in a relative distance in FRONT of it and making sure it is facing it?
Thanks in advance for any help provided.
But the problem i encountered is that stuff like Loreshot is unreliable and only works on lightweight actors, and this comes with the issue of stuff getting in the way and so on...
So my alternative solution was to make the actor teleport in front of the calling actor once a projectile lands and gets a tracer. But trying to use A_Warp didn't go anywhere since the function to teleport the affected actor isn't available in Zandro currently... And even in GZDoom my hack didn't work so well...
So i decided to fiddle around with SetActorPosition cause this seemed to be the most convenient solution at the moment, using some "set activator to use" hacks, get actor X, Y and such...
But now i came with the following question:
If SetActorPosition is used to teleport a player or monster in front of the calling actor, how would you make it so it is in a relative distance in FRONT of it and making sure it is facing it?
Thanks in advance for any help provided.