Ok , i have been searching for the past hour on why this isn’t working , everything is correct and WAS working before but for some odd reason , it isn’t budging.
function Update(){
if( Shoot_script.scopedIn == true ){
gameObject.renderer.enabled = false;
}
if( Shoot_script.scopedIn == false ){
gameObject.renderer.enabled = true;
}
}
That is literally the only code , and what happens is when i zoom in with my sniper , it disables the mesh that this script is attached to.
I have tried
gameObject.renderer.active = true;
But that fails too.
So what is happening?
Thank you