Modding, Mission Design, and Coding > The Scripting Workshop

Lua question

(1/2) > >>

spartan_0214:
Huh, I'm having problems with the mouse configuration line:


--- Code: ---LUA ERROR: [string "HUD"]:5: attempt to call field `getMouseY' (a nil value)

LUA Debug:
------------------------------------------------------------------
Name: getMouseY
Name of: field
Function type: C
Defined on: -1
Upvalues: 0

Source: =[C]
Short source: [C]
Current line: -1
------------------------------------------------------------------

LUA Stack:
------------------------------------------------------------------

------------------------------------------------------------------

--- End code ---

ugh, how fixie???

Goober5000:
Wrong thread; wrong forum.  Split and moved.

Nuke:
its io.getMouseY()

spartan_0214:

--- Quote from: Goober5000 on February 24, 2007, 09:51:28 pm ---Wrong thread; wrong forum.  Split and moved.

--- End quote ---

Thanks Goob, sorry.


--- Quote from: Nuke on February 24, 2007, 09:54:27 pm ---its io.getMouseY()

--- End quote ---

I had figured out that it was a mouse problem :rolleyes:. How do I fix it?

Nuke:
youre calling a function that doesnt exist. thats what that error means. most likely its due to the countless times the name of the function has changed. it might still be ms.getY(), ms.getMouseY(), or io.getY() under 3.6.9. dont remember exactly what it was. but in more recent builds the functions is io.getMouseY().

Navigation

[0] Message Index

[#] Next page

Go to full version