// 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
}