Ive been editing a standard FPS demo that comes with SFS2x and I wanted to include an aim bot which I would later develop into a targetting system. The code is as follows
Code:
if(Input.GetKeyDown("t")) {
GameObject go = GameObject.FindGameObjectWithTag("Enemy");
target = go.transform;
transform.LookAt(target);
//transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(target.position - transform.position), rotationSpeed * Time.deltaTime);
}
I attached this to the update part of the mouse look script and no compiler errors occurred however clicking T does nothing. I can see that the target of the player clone does infact become an enemy clone(I added the enemy tag of course) however there is no alteration to the camera. This is in C# but the issue seems to be no camera rotation so if anyone could help id appreciate it, thanks.
I see there are a lot of hacks for unity, and i want to screw hacking noobs by not letting them have any advantage. Is there a way i could create an multiplayer fps game with a player option of enable and disable anti cheat. Or if i could build 2 versions of a game, one with anticheat and one with esp and aimbot built into game. How would one create a game with aimbot and players seeing enemy through walls. May be someone would be interested in createing an asset for this unity3d problam.
– fatfly321