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.

Heimerdinger

Moderators
  • Content count

    1,326
  • Joined

  • Last visited

  • Days Won

    21

Heimerdinger last won the day on March 19

Heimerdinger had the most liked content!

Community Reputation

535 Excellent

7 Followers

About Heimerdinger

Profile Information

  • Gender
    Male
  • Location:
    USA
  • Interests
    We gon’ kill ‘em with kindness

Recent Profile Visitors

2,919 profile views
  1. What this code is doing is checking the sticksMan.stick.Length, and for that length you are checking if the game object referenced is active in the hierarchy window (reference is pointing to the game object sticksMan.transform children). If the first condition doesn't check out during the loop, it checks if the specified object is not active in the hierarchy window, then sets foundStick to active as a gameobject, destroys the object instance itself afterwards then sets the foundStick object under same reference as earlier. By the way, break terminates the loop. I think you may want to rethink your logic here. Personally your request is way too unclear for me to try and solve, maybe go in-depth about what you're trying to do?
  2. Glad you got it working man This is an absolute necessity imho
  3. Have you ever wanted to use Unity's dark skin (pro)? No more do we have to spend long nights in our caves with Unity's user interface blinding us. This extension allows you to create your own editor skins, or you may choose the preset skins that ship with its release. Enjoy. Oh and, let's all thank the developer(s) for this extension. Info: https://github.com/zios/unity-themes/wiki Download: https://github.com/zios/unity-themes/releases Instructions: Extract folder contents and drag them into your Unity project window. Navigate to > Edit > Preferences > Themes to manage the extension's settings and capabilities. This is my setup: https://gyazo.com/ff2f09938bc6cf97768a8f8808c2951c
  4. I recommend to research how Fixed Joints work for a greater understanding of how to get the exact functionality you are looking for. https://docs.unity3d.com/Manual/class-FixedJoint.html PS: If you aren't at least willing to learn how this stuff works, I'm afraid many won't use their time to aid you in writing a script for you - unfortunately. The help section gets a lot of 'leaches' here, so we like to make sure our time spent helping benefits the individual in a cognitive manner, instead of being part of an average copy and paste routine. I can tell you that the dedicated (talented) part of the community here is passionate towards those who are as passionate as they are about learning and creating things on their own. The really cool thing about learning how to do these sorts of things by yourself, is you get to keep on doing them without anyone's assistance whenever you want, however you like. Anyway, that video I found on YouTube contains what you need to know to get it working. If you can piece it out alone from there, I'll convert it to C# for you if that's what you prefer.
  5. I personally can't find any examples where it is used, but it's the way I would go about it for a start. I naturally think of left ctrl as crouch as it is in many games, which is somewhat of an abstract form of decrementing, depending how you see it. Another set up I can pull out of my mind is to use Q/E as well, that seems friendly. Or left/right click. whatever feels best is the way to go for controls.
  6. What I think would be relatively friendly is to set up WASD movement to allow the player to traverse or in other words glide across the surface of the water (un-submerged). Lock this movement to only operate on the Z/X axis. For depth-control under the surface of the water: map left shift and left ctrl as an increment/decrement function for the player's Y position. https://gyazo.com/2b49dbcf208b11b9b8a586030c5272e8 https://gyazo.com/2b49dbcf208b11b9b8a586030c5272e8
  7. The reader could use some information in identifying what the issue is. If I recall correctly, I did ask of you to add a detailed explanation of what you need.
  8. Use a for loop. It won't be as small as you want it to be, but it's a much better method to use than a nest of conditional statements like that for this specific usage. for (int i = 0; i < BuildingO.Length; i++) { if (BuildingO[i].Building == true) { BuildingO[i].BudowlaSpawn.transform.position = new Vector3(hit.point.x, hit.point.y, hit.point.z); } } This solution I typed out won't work as it is for what you need, as it will end up spawning a building if (or for) each and every boolean turns to be true; nevermind it having to be called within Update(). Hopefully this steers you in a decent direction. Click Here For More On Loops
  9. Private message me on this forum whenever.
  10. Hey, so I ended up remembering there was an FPSWalkerEnhanced script released a while back that will do the things you envision, although it will require tweaking to suit the vision you seek for the controller's precise functionality, it is a viable solution to a relatively complex controller. I grabbed the script, edited it a bit, and have packaged a small scene with two prefabs pertaining to the QUAKE and CS setup. They aren't exact, but they can get you started. https://mega.nz/#!M5o1DQxT!EO8raKqSo_V5n8JSrMnSRuiYhGbS9TPHIKK_iummpzg Now it comes down to what you would like to be exactly done, which comes with objective thought pattern. Anyway, I hope this guides you in the right direction. When you have a good idea of what you would like to be done (thought out in points), I'll be happy to assist you in the logic setup.
  11. Don't worry, I'm setting up the controller in a way that will allow you to tweak everything to match what you would like. It will have limitations, don't get me wrong- however it will allow you to have a base to work off of similar to what CS and QUAKE have.
  12. That wasn't quite an objective approach to the explanation, however I know exactly what you're looking for; or at least the part where you explained in regards to the player's rigidbody friction when moving/strafing as well as the gravity factor, not the vision you implied where you said: I'll see what I can do with what you've explained.
  13. If you may explain the movement system within objective terms, I may or may not be able to help. However, you're going to have to be very specific in terms of what functionality you would like.
  14. 2D: https://unity3d.com/learn/tutorials/projects/2d-ufo-tutorial/controlling-player 3D: https://docs.unity3d.com/ScriptReference/CharacterController.Move.html I recommend for you to download the standard assets package and play around with it, as it contains everything you need to get started. Analyze and indulge into the code within the package. It has 2D controllers, 3D controllers, roll-the-ball and ground/airborne vehicle controllers at your disposal. https://www.assetstore.unity3d.com/en/#!/content/32351 And remember, have fun. PS: If you'd like to attempt what you need by yourself if that comes to a last resort, here is what you need to understand to get the results you long for. https://docs.unity3d.com/ScriptReference/Input.html https://docs.unity3d.com/ScriptReference/Rigidbody.html https://docs.unity3d.com/ScriptReference/Rigidbody2D.html https://docs.unity3d.com/ScriptReference/CharacterController.html https://docs.unity3d.com/ScriptReference/Vector2.html https://docs.unity3d.com/ScriptReference/Vector3.html https://docs.unity3d.com/ScriptReference/Quaternion.html https://docs.unity3d.com/ScriptReference/Transform.html https://docs.unity3d.com/ScriptReference/RaycastHit.html
  15. Thank you, learned a bit from this.