|
Hallo is there anybody who will help me with this code???
(comments are locked)
|
That isn't in a function, it needs to be so. ------------EDIT------------------
That's it cleaned up and in the Update function... Thanks for your help but Im not able to fix the problem....could someone write this code clean
Dec 15 '10 at 01:39 AM
Dave M
Edited answer to be more neat and in the Update function...
Dec 15 '10 at 02:14 AM
Justin Warner
Many thanks for your fast http://answer.Is there a fast way to make it reverse if i leafe the mouse button??
Dec 15 '10 at 03:19 AM
Dave M
That doesn't make any sense Dave. You wanted to have continual force between min and max. How are you ever going to shoot it "half way through"? Sit down and think through what it is you really want.
Dec 15 '10 at 03:22 AM
Statement ♦♦
Ok sorry, I mean If I hold the mouse button continual and the force goes to max. in 5 sec.( and I still hold the button but the force doesent rise) and if I leaf the mouse button the force goes down to 0. And the ball will be pushed. Hope you understad that....
Dec 15 '10 at 03:46 AM
Dave M
(comments are locked)
|
|
Try this script. I tested it and it seems to work just fine. If you don't want to automatically shoot when powermax is reached, uncheck Auto Throw in inspector. Easy. It works great!!!Many thanks
Dec 15 '10 at 03:54 AM
Dave M
Darn, I am trying to use this but I need it to fire when you release the button, I dont believe this functions that way.
Nov 16 '12 at 11:31 PM
madmike6537
@madmike6537 It should fire when you release the button. Just make sure that autoThrow is set to false. (Press, hold & release)
Dec 03 '12 at 11:17 PM
Statement ♦♦
Thanks! I ended up getting this to work perfectly, forgot to update my comment! Thanks again :)
Dec 03 '12 at 11:58 PM
madmike6537
(comments are locked)
|
