1. Hello,
    I'm using JavaScript and while getting player position by this:

    Code:
    commandGetPos: function(session, cmd, arg) {
        var position = session.WorldPlayerEntity.transform.position;
           
        this.chat(position, false, session);
    }
    I'm getting error:
    (session.WorldPlayerEntity.transform is returning PlayerServer(Clone) (UnityEngine.Transform))

    Code:
    (InvalidOperationException: No matching indexer found.)
    Any ideas?
     
  2. I don't really know JS, but this should work:
    Code:
    commandGetPos: function(session, cmd, arg) {
        var position = session.WorldPlayerEntity.transform.position;
           
        this.chat(position.toString() , false, session);
    }
    otherwise try this:

    Code:
    commandGetPos: function(session, cmd, arg) {
        var position = session.WorldPlayerEntity.transform.position;
           
        this.chat("x: " + position.x.toString() + ", y: " + position.y.toString() + ", z: " + position.z.toString() , false, session);
    }
     
  3. LaserHydra, great. That's it. Thanks a lot.
    I was in hope that will print "object" instand of throwing error.