0% found this document useful (0 votes)
29 views1 page

CameraPov Cs

Uploaded by

b65dxy4nx2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

CameraPov Cs

Uploaded by

b65dxy4nx2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

// THIS SCRIPT IS MADE BY NXY

// DO NOT TRY TO CLAIM IT AS URS.


// ENJOY THE SCRIPT. KINDA HARD TO SETUP. BUT IT WORKS
// enjoy no credits really needed
// west taggers:
// https://discord.gg/Rd8PsqthA5
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using easyInputs;

public class CameraPov : MonoBehaviour


{
[Header("This Script is made by nxy.")]
[Header("put this as left hand")]
public EasyHand handleft;
[Header("put this as the empty object mod")]
public GameObject moddisable;
[Header("put this as the camera of the camera mod")]
public GameObject CamEnable;
// Start is called before the first frame update
void Start()
{
}

// Update is called once per frame


void Update()
{
if (EasyInputs.GetTriggerButtonDown(handleft))
{
// this is when the player presses the trigger button
// this disables the mod
moddisable.SetActive(false);
// end
}
}

void OnTriggerEnter()
{
// this enables the camera of pov
CamEnable.SetActive(true);
}
// enjoy the script by nxy
}

You might also like