1. I'm a little bit rusty on writing oxide plugins but i came back,i'm testing some player position stuff and im getting
    Code:
    Type `UnityEngine.Vector3'
     does not contain a definition for `Y' and no extension method `Y' of type `Unit
    yEngine.Vector3' could be found. Are you missing an assembly reference?
    Which is strange cause according to
    Unity - Scripting API: Vector3
    the Vector3D has properties X,Y and Z with float type.
    Sample code
    Code:
    foreach (var target in BasePlayer.activePlayerList.Where(target => target != null && target.transform != null && target.IsConnected)){
                               float X = target.transform.position.X - player.transform.position.X;
                               float Y = target.transform.position.Y - player.transform.position.Y;
                               float Z = target.transform.position.Z - player.transform.position.Z;
                             
    }
    Any hints on getting the player position and all player connected position?
     
  2. Wulf

    Wulf Community Admin

    Lowercase x, y, z.
     
  3. This is what happen when you get used in a non-case sensitive programming language and you try to code anything into a case senstive one.
    My bad, and thank you Wulf, also thank you to leaving the author credits on Everlight, i appreciate it. :)

    Edit:
    Now i'm getting that IPlayer don't have a transform member.
     
    Last edited by a moderator: Feb 8, 2018
  4. Wulf

    Wulf Community Admin

    IPlayer doesn’t, BasePlayer does. Your original posts shows BasePlayer.
     
  5. its possible to typecast like this?
    Code:
    BasePlayer me = player.Object as BasePlayer;
     
  6. Wulf

    Wulf Community Admin

    Yes, you can do that.