- Home /
reload gun? simpel question
hey i have a reload script but my question is on what do i attach the script to?
the bullet? the gun?
can someone explain this please becouse my script says.....
var bullets = 30; var reloadTime = 4;
function Update() { if( bullets <= 0 ) { yield WaitForSeconds (reloadTime); bullets = 30; } Reload();
}
function Reload() { if(Input.GetKeyDown("R")) { yield WaitForSeconds (reloadTime);
bullets = 30;
} }
so i want to know where and how to do this count find exactly what i was looking for yes i have finded reload tags and questions im sorry if it is thare i can`t find it and im new to unity tnx Greats Wesley S
Answer by apukommander · Feb 02, 2011 at 02:54 PM
no wrong you need to reload weapon on apu near gate so hammer can get threw you have to do both slots for apukommander so he can trueunmatched the swarming sentinels
Answer by Statement · Jan 09, 2011 at 02:51 PM
It seems your script is just concerning with being a clip that can be reloaded. Surely you must have other scripts using this script. It should probably be placed on the gun. The gun need to make use of bullets
for it to be of any use.
Your answer
Follow this Question
Related Questions
1 script doesn't react to input 1 Answer
reload gun with bullets 2 Answers
How do I make an object move? 3 Answers
My machine gun code steels my clips 4 Answers
Reload help 1 Answer