Jump to content

SetFacingToObject, SetInFront and melee attack

Guest ike3

Recommended Posts

Hi All,

In my branch I ran into an issue. When server-controlled player (bot) is meleeing a unit and the unit moves behind the player I call


Accoring the code it should start a spline movement making the player facing the unit. But it is never does. Although if the target is out of melee range the method works fine making player look to the right direction.

If I change the code to


it actually does the trick and the server thinks player has the correct orientation and allows further meleeing. But the client does not! It shows the unit behind the player, player meleeing the air and even hitting the unit :).

Is it possible to call something to update the client?

Link to comment
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use