Quantcast
Channel: Latest Questions by eeveelution8
Browsing all 100 articles
Browse latest View live
↧

Automatic fire in weapons

Im currently away from home and cant test this, but im asking anyway in case i have to ask anyway later.(on mobile at school.) i've been wondering about how to do an automatic weapon, and i'm asking...

View Article


Access a GameObject through it's tag, using a string.

In a weapon pickup script i have, The script i have should find a gun, based upon it's tag. In order to reuse this script instead of having 9 different ones, I added a string variable called gunname....

View Article


AI script troubles

I created an AI script, but it is having trouble. The enemy I'm putting the script on is supposed to be able to be spawned into the map multiple times, so i have to use a FindGameObjectsWithTag...

View Article

how do i access the components in 3D texts

I'm doing a tycoony type thing, And want to make 3D texts hover over buttons to show what the button buys. However, I don't know how to reference a 3D text, because I couldn't find it in the Learn...

View Article

Use of an AI script, and having it NOT go through walls using a character...

This questions arises from a different question regarding an AI script and is a continuation of the topic. While functional, has the enemy its used on go through walls. This is problematic on several...

View Article


Light Flare transparency trouble

So I am made this light flare, And it should look like this against a black background, ![alt text][1] ![alt text][2] [1]: /storage/temp/26665-help1.png [2]: /storage/temp/26666-help2.png But looks...

View Article

weapon isn't removing ammo when firing, but the script behaves normally...

the script I have for a pistol should remove the amount of ammo equal to the firecost, the script being, var Attack1 : GameObject; var Attack2 : GameObject; var sound1 : AudioClip; var sound2 :...

View Article

a 'phantom' error.

in this script i have, var opensavingthrow : int = 1; var hacksavingthrow : int = 1; var amiaHACKdoor : boolean = false; var playerholder : GameObject; var player : player_script; function...

View Article


an object seemingly cannot access a value in other.

A drill in the game is supposed to only fire if the players fuel value is equal or greater than the cost to run it. It's strange because i've done this before, but it doesn't work for this one. anyone...

View Article


Question on playerprefs

i have been working with different functions and values in coding, as i'm still learning. And im considering the prospects of using the specific functions with playerprefs like setint and getint. I...

View Article

Gap in requirements in GUI based game

I have a game that is GUI based, as the questions name implies, and the problem I have is that in a dialogue window, a text can be clicked to execute an event, and once clicked, the event has two...

View Article

project a ray in a straight line

I am working on raycasts for the first time, and have looked at the various kinds of ways a raycast can be done in the manual. I imagine raycasts are hard to understand for people new to it, because I...

View Article

Turn based games turn manager is spazzing out

I have a game with several units on the field, some computer controlled, some player controlled. when the unit's AP reaches 0, a boolean called 'isitmyturn' is turned off. and the script should make...

View Article


Enemy units behave normally, until they rotate, then their AI seems to break

I have a turn based strategy game, and the enemy have (very basic)AI. The little units seem to work and behave normally, but once they rotate, their AI seems to blow a fuse and they speed up, go...

View Article

Forced FPS?

While working in unity I was looking into the update functions, and I was wondering if it was possible to force a game to run at a predefined framerate. Can this be done? (setting a game to run at 40...

View Article


Rigidbodies getting stuck in non moving objects

This has not been a problem before, but in every project I have this happens. I know how rigidbodies work, but when they fall on another object, they fall a few units into the object, as if the other...

View Article

Timestamp and missing assets problem, very confused

after uploading an asset to the asset store, I close unity down and went to play TF2. a few hours later, I open the editor back up, and EVERYTHING is gone. not a single thing remained. I checked the...

View Article


Weapon store using playerprefs does not retain stored information.

I'musing playerprefs to store and int value under the name of 'wep1', and have it initially set to 0. when purchasing the gun, the int value should become 1. The point of the shop is to allow the user...

View Article

How do Audio reverb zones work, how are they set up?

I looked at it's documentation, and I don't have a very good grasp on how these work. I didn't see a lot about this in answers, so I'm wondering if anyone could explain how an audio reverb zone works,...

View Article

Opening the disk drive ingame.

I didn't think this was a question that existed so forgive mefor notchecking, but does unity have a command(Java) that can open the users CD drive ingame? My reason for asking is because I want to make...

View Article
Browsing all 100 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>