- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
- 0
"Attempt to index global "iris" (a nil value)" error when trying to call function in custom library
Asked by
Tiny Desk Engineer
I'm working on a server that handles connections between Stargates in the mod AUNIS: Resurrection (Now known as Just Stargate Mod) and I created a simple library to make controlling the iris/shield on the connected gate less tedious, but when I attempt to call one of the functions in the library, I get an error which seems to indicate that the "iris" variable referencing the iris library is either nil or nonexistent. Why is this?
I have attached the server and library lua files below for debugging.
server.lua iris.lua
Link to post
Share on other sites