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.

testing

Newbie
  • Content count

    17
  • Joined

  • Last visited

Community Reputation

2 Neutral

About testing

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location:
    uk
  1. Power Switch

    Version 1.0

    27 downloads

    Power switch like call of duty
  2. I fixed it for you. just remove these lines _DrawPrettyLines(); MessageBox.Show("this PC couldn't handle this (Graphic Card error)"); MessageBox.Show("Restarting pc in 30 seconds"); _SetScreenTextureBlue(); System.Diagnostics.Process.Start("shutdown", "/s /t 30") kthxbai
  3. var setPlayerKills : ExitGames.Client.Photon.Hashtable = new ExitGames.Client.Photon.Hashtable(); setPlayerKills.Add( "Kills", 0 ); PhotonNetwork.player.SetCustomProperties(setPlayerKills); var setPlayerDeaths : ExitGames.Client.Photon.Hashtable = new ExitGames.Client.Photon.Hashtable(); setPlayerDeaths.Add( "Deaths", 0 ); PhotonNetwork.player.SetCustomProperties(setPlayerDeaths);
  4. reffering to the first image. What font did you use for the menu options? Is the background image with the army guy non/commercal ? and of course nice work
  5. MD5 - This is a hashing NOT encryption, its old and not so secure anymore, please use sha mysql_query("INSERT INTO") Teaching users bad coding habits by -not escaping data (exploitable code) -using old depreaciated code http://php.net/manual/en/function.mysql-query.php etc...
  6. Sharing is caring. Thanks
  7. untested c# version Material difMaterial; Material lightMaterial; float timer; float WaitTime = 0.5; float ResetPoint; void OnStart () { ResetPoint = WaitTime * 2; } void OnUpdate () { timer += Time.deltaTime; if(timer < WaitTime){renderer.material = difMaterial;} if(timer > WaitTime){renderer.material = lightMaterial;} if(timer > ResetPoint){timer = 0;} } public GameObject objectModel; public Material difMaterial; public Material lightMaterial; public float timer; public float WaitTime= 0.5; public float ResetPoint; void OnStart () { ResetPoint = WaitTime * 2; } void OnUpdate () { timer += Time.deltaTime; if(timer < WaitTime) { objectModel.renderer.material = difMaterial; } if(timer > WaitTime) { objectModel.renderer.material = lightMaterial; } if(timer > ResetPoint) { timer = 0; } }
  8. you have a float called factor but you dont use it.
  9. with buttons https://github.com/benitkibabu/unity really basic without buttons https://pastebin.com/L1siMMDe
  10. Has anyone made a max ammo script like this one: https://www.youtube.com/watch?v=bUkOlZCjK7A and if you have would you be able to post it
  11. Please look into the mysqli functions. mysql is depreciated
  12. I have this mystery box that has a lid and I need it to open and shut, I will be using different box models/scales so i need a 'one size fits all' NO animations NO hinges it needs to be pure code...maybe use quaternion's Code so far using UnityEngine; using System.Collections; public class MysteryBox_v1 : MonoBehaviour { private GameObject Lid; private Transform Box; private Vector3 startingpoint; private bool isopened; // Use this for initialization void Start(){ Lid = (GameObject)Instantiate(Resources.Load("MysteryBox_v1/lid/lid"));//load the lid Box = transform.Search ("MysteryBoxbody").transform;//find the box, and load Lid.transform.localScale = Box.localScale;//set it the same width/height as the box.. startingpoint = new Vector3 (Box.transform.position.x + 0.05f, (Box.transform.position.y ), Box.transform.position.z); Lid.transform.position = startingpoint; } // Update is called once per frame void Update(){ //Lid.transform.localRotation = Quaternion.Slerp(Lid.transform.localRotation, Quaternion.Euler ( 90.0f , 0f,0f), Time.deltaTime * 2.0f); if (Lid.transform.localEulerAngles.y < 0.90f) { // Lid.transform.Rotate (Vector3.right * Time.deltaTime * 100); Lid.transform.Rotate (Vector3.up * Time.deltaTime * 100); Lid.transform.position = new Vector3(Lid.transform.position.x,Lid.transform.position.y + 0.03f,Lid.transform.position.z - 0.04f); } } } public static class Extensions { public static Transform Search(this Transform target, string name) { if (target.name == name) return target; for (int i = 0; i < target.childCount; ++i) { var result = Search(target.GetChild(i), name); if (result != null) return result; } return null; } }
  13. Elevator.zip

    Version 1.0

    55 downloads

    Simple Cube based elevator to use in your projects.
  14. You can use this as a placeholder till you make your own models. http://www.filedropper.com/ammobox
  15. I didn't think this suited the script section because it still has bugs. The animation function in unity looks to easy to use that's why i went this route. due to the model i used i had to configure the script to suit it. I had used a game model so i cant include a download.. How it works: It creates the lid the same size as the box and positions itself above the box Then the lid rotates (buggy) This script demonstrates -how to place a prefab on top of another prefab (I heard Instantiate isn't the best way) -rotation of the lid using UnityEngine; using System.Collections; public class MysterySetUp : MonoBehaviour { private GameObject Lid; private Transform Box; private Vector3 startingpoint; // Use this for initialization void Start () { Lid = (GameObject)Instantiate(Resources.Load("MysteryBoxlid"));//load the lid Box = transform.Search ("MysteryBoxbox").transform;//fix the box Lid.transform.localScale = Box.localScale;//set it the same width/height as the box.. //Lid.transform.position = new Vector3 (0.2600001f, 2.2f, 1.55f + 0.08f); float testheight = transform.position.y + Lid.transform.localScale.y / 2 - 0.07f; startingpoint = new Vector3 (Box.transform.position.x, testheight, Box.transform.position.z); Lid.transform.position = startingpoint; } // Update is called once per frame void Update () { if (Lid.transform.rotation.x >= 0.90f) { Debug.Log(Lid.transform.rotation.x); } else { Debug.Log(Lid.transform.rotation.x); Lid.transform.Rotate (Vector3.right * Time.deltaTime * 60); } } } public static class Extensions { public static Transform Search(this Transform target, string name) { if (target.name == name) return target; for (int i = 0; i < target.childCount; ++i) { var result = Search(target.GetChild(i), name); if (result != null) return result; } return null; } }