• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

I have a problem with Lua again...

Status
Not open for further replies.

amperbee

thunderdome denizen
(I should stop the stream of Lua problems but when I want to find something, well, I can't find it.)

I'm trying to change the automatic ring ammo when "vauto == '1'".
The problem is that I can't.
At the start I use "local vauto = 0" to initialize it, then a function where it's first argument is "vauto". I set it to 1 ingame and printing the variable gives me 1.
Now, after I close the function, I open a ThinkFrame() hook where it should check if "vauto == '1'" and give me ammo, but vauto is nil.
What am I doing wrong?

---------- Post added at 08:17 PM ---------- Previous post was at 07:57 PM ----------

I don't know how but I fixed it.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top