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:
My question here is, should I try to find objects with the tag "Player" or look for the target's transform.position?Code:GameObject go = GameObject.FindGameObjectWithTag("Enemy"); target = go.transform;transform.LookAt(target);
LookAt in Rust
Discussion in 'Rust Development' started by cogu 2, Apr 24, 2016.
-
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.
-
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.
-
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. -
It also doesn't appear to actually be possible to change the rotation in my experience, it just doesn't do anything.
