Hi can someone help me with a script.I have a shield that makes me invisible but i don’t want my shield when i use it to be able, to use it for ever i want every time when i equipt it to be eble to use it 5 seconds than i have to recharge it for 3 sec,that again
I know that it’s realy hard to make a script but can someone help me…
Thank you…
if you post what you have already, it would be easier for us to help. Unless your looking for someone to write your complete script and then i suggest you post in the collab section.
So i don’t have a script i wanted some one to write it for me…
I dont understand what do you want, Could you use google translator ?
He wants a timer so that if you use an item, it turns his character invisible for 5 seconds, but then he has to wait an additional 3 seconds to recharge it before using it again.
You can find all info from unity refence site, try look yield waitforsecond function and how basic loop works inside unity, and i wont use Update function on that script, i prefer OnKeyPressed or something.
hope this gives some idea
Can you write me a Script please cause i have no idea of scripting… Thank you
3DKnight, there are plenty of resources, tutorials, and examples available on the Unity site and google to help you learn how to script:
http://unity3d.com/support/resources/
http://forum.unity3d.com/threads/19302-About-Scripting
ok i’ll see if i can learn something.I’m from Serbia so i don’t understand alot of words in unity scripting thats why never tried to learn scripting…Thanx by the way…
Reading your topics… makes me bit sad, and i dont want be rude! You say that you dont have NO idea of scripting at all. I see that you are 13y old and in your country there isnt much english stuff.
But for god sake there is so many, MANY tutorials inside of youtube, vimeo, thousand of forums, in unity refencense. Use those! Learn something from then! Repeat and Repeat, some day you can be that one who helps some one.
If you ask on every script what to do, you just ruin everything - you are young, you can learn - javascript isnt even hard to understand.
I Hope this motivates you. And sorry for offtopic.
Purri
Thanx bro.
Go to the youtube and search “Tornado Twins Tutorials” and make them all, after that you can do very much everything simple
i did myself 6 tutorials and then got boored But i was just new on unity, not on scripting
I was watching TornadoTwins abou a year or two and i finished there tutorials and they are really good.
But scripting is to hard for me i don’t understand
-functions (like what"Fire"means) or (LateUpdate)…
Fire means nothing, its just the name of the function (you could use CocadodleDo, and unity wouldn’t care, all it knows is thats the name), so you can call on it, Update means its called every frame by the unity engine, FixedUpdate is like update, except its used for when physics is involved, OnGUI is for GUI elements, like GUI.Box, GUI.Button, etc. Start is for initialization, Awake is for something, i cant remember, though. there is LateUpdate, called after Update. to call on a function, you can use FunctionName();, or SendMessage(“FunctionName”);, or Invoke(“FunctionName”);
LateUpdate is not used for physics. It is used to create an order of execution (Update is called, then LateUpdate).
FixedUpdate is used for physics.
ok, got them mixed up
Awake means when object “awakes” like when its enabled
ok