1. Is it possible to hook the movement and rotation of a player?
     
  2. Wulf

    Wulf Community Admin

    You could probably hook when their transform has changed, but not sure where.
     
  3. Hmm.. Interesting.
    Are there any plugins that do something similar?
     
  4. Wulf

    Wulf Community Admin

    You could track their position and rotation OnTick, but that'd be resource heavy.
     
  5. Yeah I think so as well
     
  6. Attach your custom component to player and check for Transform.hasChanged.
    For movement it should be working, but unsure about rotation, it's handled in a different way.
     
  7. How is this done? Any examples I can read?
    What else could the component be attached to?
     
  8. Example is right in the docs.
    Attaching is simple:
    Code:
    player.gameObject.AddComponent<YourClassName>();
    To any GameObject.
     
  9. I think that'll do it actually. Thanks!