1. I were searching without results for C#.
    How do I get players current position where he is standing? Found something for lua, but same functions didn't work for C#.

    Thanks :)
     
  2. Wulf

    Wulf Community Admin

    player.transform.position
     
  3. So it doesn't show it on intellisense. Don't know why. In Unity it is transform.position.x if I want specific coordinate so I guess this position itself is full Vector3 value. Am I right?
     
  4. Wulf

    Wulf Community Admin

    It will show if you have the right references. It'd be under Assembly-CSharp.dll, but it is a Vector3.
     
  5. [​IMG]
    I have added it as reference and the class.cs file is under the project list.
     
  6. Wulf

    Wulf Community Admin

    It should be showing then. Are you typing in a hook that provides the BasePlayer?
     
  7. Yes. OnPlayer... and etc that contains BasePlayer player in void.
     
  8. Wulf

    Wulf Community Admin

    Hmmm, it should be then. Have you tried reloading your project/solution?
     
  9. It started working with player.transmission, but now. It still says Vector3 playerPos is unknown. Vector3 underlined. Should I use "UnityEngine.Vector3 playerPos = player.transform.position;" insteads? It doesn't show red underline then.
     
  10. Wulf

    Wulf Community Admin

    That or:
    Code:
    var pos = player.transform.position;
     
  11. Thank you :)