Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Kelly

  • Rank
  • Birthday 09/28/1995

Profile Information

  • Location:
  • Interests
    Beginner Game Developer Haha :)

Recent Profile Visitors

412 profile views
  1. using System.Collections; using System.Collections.Generic; using UnityEngine; public class weaponsway : MonoBehaviour { public float amount; public float maxAmount; public float smoothAmount; private Vector3 initialPosition; // Use this for initialization void Start() { initialPosition = transform.localPosition; } //Update is called once per frame void Update() { float movementX = -Input.GetAxis("Mouse X") * amount; float movementY = -Input.GetAxis("Mouse Y") * amount; movementX = Mathf.Clamp(movementX, -maxAmount, maxAmount); movementY = Mathf.Clamp(movementY, -maxAmount, maxAmount); Vector3 finalPosition = new Vector3(movementX, movementY, 0); transform.localPosition = Vector3.Lerp(transform.localPosition, finalPosition + initialPosition, Time.deltaTime * smoothAmount); } } Nothing Wrong In My Scripts , But It's Not Working On My Gun Help Guys , My Script Is WeaponSway. I'm Using Unity 5 Pro But I'm Not Sure If It It's Pro. This Is The Script: OcularCash Edit: I deleted your image because it wasn't working and I also copy and pasted your messages from chat
  • Create New...