[HTML] if (aimbot)
{
while (Input.GetKeyDown(KeyCode.Mouse2))
{
GameObject go = GameObject.FindGameObjectWithTag("Enemy");
Vector3 target = go.transform.position;
transform.LookAt(target);
}
}[/HTML]
We were all trying to transform the transform as a position but after looking at https://docs.unity3d.com/ScriptReference/Transform.html and how it takes position rotation and scale, why not just do this (Position docs https://docs.unity3d.com/ScriptRefere...-position.html) As you can see it takes Vector 3.
I am writing this thread and about to inject it into my game, wish me luck guys.
E: Ok it crashes the game, but im onto something here.
E2: After more investigation it seems that the phsyical transform.LookAt is crashing the game. Will try more things now.
Last edited by blackstab1337; 07-29-2014 at 04:25 AM.
You need to specify what to rotate. In this case it would be the cam. In other words, replace the 'transform' with the main cam
The network player has nothing to do with the cam.. Use Camera.main & grab the transform obj.
Well, my shit works.. But I'm not using the same func
You could also draw it under the right camera.. that makes it work
Hey kunii can you help me with my aimbot? Cause im a little confused on how to do it