Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I have Values in tools?

Asked by 6 years ago

Hi,

I am trying to create a tool that once clicked the duration of time the mouse button was down would translate to power. This is a soccer game, so power will translate to the ball with bodyforces, but I can't figure out anyway to make it work. Any help will be greatly appreciated.

Thank You, ForeverNotts

0
If you're trying to get a duration of time value, I would suggest looking into tick. Async_io 908 — 6y
0
Thank You ForeverNotts 0 — 6y

1 answer

Log in to vote
0
Answered by
Link150 1355 Badge of Merit Moderation Voter
6 years ago

Yes. There is no reason you couldn't.

But consider using Lua variables instead of Value objects. Value objects make code much harder to read, and generally raise the complexity of code needlessly.

Ad

Answer this question