LookAt in Rust

Discussion in 'Rust Development' started by cogu 2, Apr 24, 2016.

  1. I'm trying to make a temporary aim assist to players, but I'm having a little difficulty with making the player aim to another player.
    This is a basic unity aimbot source:
    Code:
    GameObject go = GameObject.FindGameObjectWithTag("Enemy");
    target = go.transform;transform.LookAt(target); 
    My question here is, should I try to find objects with the tag "Player" or look for the target's transform.position?
     
  2. Wulf

    Wulf Community Admin

    I don't think you'll find much help making an aimbot here, especially since doing it as a plugin will essentially wreck your server's performance. :/

    The basic jest of it would likely be to change their player.transform.position and player.transform.rotation though.

    This isn't really the place for making cheats though. ;)
     
  3. I'm not really making cheats though, I'm trying to purposefully allow the players in my server to have a certain aim assistance under certain conditions.
     
  4. Wulf

    Wulf Community Admin

    Seems like an odd thing, but I wouldn't recommend it just because of the stress you'd put the server under having the calculate that for them every time they move a fraction.
     
  5. It also doesn't appear to actually be possible to change the rotation in my experience, it just doesn't do anything.