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.

OneManArmy

Administrators
  • Content Count

    3,965
  • Joined

  • Last visited

  • Days Won

    175

Everything posted by OneManArmy

  1. you reinstalled windows? ok as i already wrote - wait for update.
  2. I made build from project where i tested package and everything works as expected: As i can see PUN 2 had update... maybe they changed something, or bug. Tomorrow i will check what is going on... wait for update.
  3. Hold right mouse button to pick => release RMB to drop, or press LMB to throw.
  4. Version 1.0

    12 downloads

    From this project you can learn how to create/destroy and synchronize AI. PUN2 documentation: https://doc.photonengine.com/en-us/pun/v2/getting-started/pun-intro If you have any questions: https://armedunity.com/forum/27-need-help/ Requires: - unity 2018 or higher - PUN 2 v2.7 or higher How to open project: 1. Create new project 2. Import and setup "PUN 2" from unity Asset Store 3. Download, extract from archive and import AU_PUN_2_NPC 4. Add scenes in Build Settings IMPORTANT: You are not allowed to share project outside armedunity (upload on other sites)
  5. It's hard to understand what exactly you want. Your code sample already is answer on your question. Maybe? void Start(){ for(int i = 0; i < activeObjects; i++){ weapon_carry_pistol[i].SetActive(true); } }
  6. Version 1.0

    39 downloads

    From this project you can learn: * How to set/sync username * How to create room * How to retrieve information about rooms (room list) * How to change region * How to create and sync players * How to change map (also lock and hide room) * How to show username over head * How to get/show list of players in room * Chat (also shows when new player joined/left room) * How to use custom room properties (sync game mode, map name) * How to use custom player properties (sync player customization) * How to send RPC's PUN2 documentation: https://doc.photonengine.com/en-us/pun/v2/getting-started/pun-intro If you have any questions: https://armedunity.com/forum/27-need-help/ Requires: - unity 2018 or higher - PUN 2 v2.7 or higher How to open project: 1. Create new project 2. Import and setup "PUN 2" from unity Asset Store 3. Download, extract from archive and import AU_PUN_2 4. Add scenes in Build Settings Step-by-step tutorial: https://www.youtube.com/watch?v=LINYYNt5BmE IMPORTANT: You are not allowed to share project outside armedunity (upload on other sites)
  7. Pay attention to section... it is showcase... here developer can show his own game, not only give you something to download.
  8. I downloaded project and tested in latest version of unity engine. There are only 3 errors. "error CS0104: `MinAttribute' is an ambiguous reference between `UnityEngine.MinAttribute' and `UnityEngine.PostProcessing.MinAttribute'" To fix errors simply double click on error and replace: "MinAttribute" with "UnityEngine.PostProcessing.MinAttribute" Or in Project window search for "MinDrawer" script and replace code with: using UnityEngine; using UnityEngine.PostProcessing; namespace UnityEditor.PostProcessing { [CustomPropertyDrawer(typeof(UnityEngine.PostProcessing.MinAttribute))] sealed class MinDrawer : PropertyDrawer { public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { UnityEngine.PostProcessing.MinAttribute attribute = (UnityEngine.PostProcessing.MinAttribute)base.attribute; if (property.propertyType == SerializedPropertyType.Integer) { int v = EditorGUI.IntField(position, label, property.intValue); property.intValue = (int)Mathf.Max(v, attribute.min); } else if (property.propertyType == SerializedPropertyType.Float) { float v = EditorGUI.FloatField(position, label, property.floatValue); property.floatValue = Mathf.Max(v, attribute.min); } else { EditorGUI.LabelField(position, label.text, "Use Min with float or int."); } } } }
  9. Version 1.1

    66 downloads

    This project was made for educational purposes. In this project i added only base functionality (what i think is the best for beginners) From this project you can learn: * How to set/sync username * How to create room * How to retrieve information about rooms (room list) * How to change region * How to create and sync players * How to change map (also lock and hide room) * How to show username over head * How to get/show list of players in room * Chat (also shows when new player joined/left room) * How to use custom room properties (sync game mode, map name) * How to use custom player properties (sync player customization) * How to send RPC's But before you will start to study this project, please read documentation, study official tutorial and demo scenes: https://doc.photonengine.com/en-us/pun/current/getting-started/pun-intro If you have any questions: https://armedunity.com/forum/27-need-help/ Requires: - unity 2017 or higher (in unity 5 you will have to re-bake lighting data) - PUN Classic v1.90 or higher How to open project: 1. Create new project 2. Import and setup "PUN Classic" from unity Asset Store 3. Download, extract from archive and import AU_PUN_Classic 4. Add scenes in Build Settings Step-by-step video tutorial: https://www.youtube.com/watch?v=L4TzEGGrWas IMPORTANT: You are not allowed to share project outside armedunity (upload on other sites)
  10. but nobody forces you to jump on latest version of unity engine.
  11. When someone needs help with so simple things, i don't think that end result will be something complex
  12. You think it is possible to get same number more then let's say 100 times, if random will be from 2+ numbers? Even if somehow you will get same number 10 000 times, it is only 0.4 ms. *** Edit: Did a test... I was checking how many times i will get the same number: Random.Range(0, 3); From 50 000 times highest was 11 times. Random.Range(0, 10); From 60 000 times highest was 5 times.
  13. while (newIndex == currentIndex) { newIndex = Random.Range(0, Shapes.Length); }
  14. Step-by-step tutorial doesn't exist. At first you learn C# + unity editor and after some time you can download PUN. By reading documentation and studying provided demos/code you will learn how to make multiplayer game from any kit. If you are lazy, then you can buy one of multiplayer kits, but it will be waste of money, since you will not be able to modify kit.
  15. You can use any kit with photon.
  16. Learn C# + unity editor basics and only then use kits.
  17. And where is problem? Open Scenes folder and double click on Testmap scene.
  18. Hi, you can buy some kit with AI (or only AI asset) from unity asset store, or you can hire someone who will add AI. I had to remove AI's from this kit, because without AI there is no gameplay and beginners can't release default kit as their game.
  19. public int times = 5; public float waitTime = 2f; void Start () { StartCoroutine(Test()); } IEnumerator Test() { while(times > 0){ DoSomething(); yield return new WaitForSeconds(waitTime); times --; } Debug.Log("Done"); } void DoSomething(){ Debug.Log(Time.time); }
  20. Check your audio source settings. P.S. There is no need to send RPC's to play footstep sounds (especially when you use PUN with message limit). Just slightly modify your footstep script, or write separate script for remote player.
  21. how exactly you play sounds? show us code and check what is going on with your audio source in editor(in play mode). Maybe you change spatial blend via code, or something wrong with your 3d audio settings (and you should adjust distance and rolloff)
  22. https://www.youtube.com/results?search_query=unity+photon+pun+tutorial https://www.youtube.com/playlist?list=PLbghT7MmckI7BDIGqNl_TgizCpJiXy0n9
  23. "how to add multiplayer and bots" * Watch tutorials/read documentation and learn. * If you have money, then hire someone, or buy one of kits with multiplayer. For example: https://assetstore.unity.com/packages/templates/systems/modular-multiplayer-fps-engine-photon-2-88064 Where did you read that photon for unity was discontinued?
  24. You don't have to disable camera. Simply disable controls on player when you instantiate jet. For jet camera set "Depth" higher then players camera and it should be enough. Where is problem with instantiation? When you instantiate (and you don't have errors), then object will be instantiated. Question is only how you move/sync jet position/rotation. Most likely jet shows up in wrong position (you can see it in Hierarchy window). By the way, how do you plan to move jet? You can control jet, with animation, or you use waypoints?
×
×
  • Create New...