1. Oxide 1.18 has been discontinued and is no longer supported. Please do not post requests for Oxide 1.18 plugins or support.
    We recommend upgrading to Oxide 2.0 as able. Plugins can be easily updated to support it as well.
  1. tugamano

    tugamano Shack Builder Plugin Developer

    Any method to know rotation of a character player?
    I tried with this:
    Quaternion rotation = Quaternion.LookRotation(netuser.playerClient.lastKnownPosition);
    But apparently he gives me the rotation of the position and not the personage, So I think it's something like this:
    player.playerClient.rootControllable.GetComponent<Character>().(What should I do here?);

    I have little knowledge on Unity Engine.
  2. Pleskac

    Pleskac Scavenger

    Try this
    Code (Text):
    Quaternion playerRotation = player.playerClient.rootControllable.GetComponent<Character>().eyesRotation;
    Quaternion playerRotation = player.playerClient.rootControllable.GetComponent<Character>().rotation;
    tugamano likes this.
  3. tugamano

    tugamano Shack Builder Plugin Developer

    Perfect Pleskac The 2 me works A ++ for you thanks for your help.