Jump to content
Leadwerks Community

Recommended Posts

Posted
4 minutes ago, havenphillip said:

How do I interact with a script I've imported into another script from that second script?

import("Scripts/Menu.lua")

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Posted

If that script just has functions in it then you can just call the functions as the import of the script will define the functions to be used. You can't just import an LE entity script like that and use it though. There are ways to get "classes" so you can do a self.whatever though. If you aren't an object oriented person then just define normal functions.

 

 

Posted

OK I'm going to have to keep looking at this to see if I can understand what I can get away with and what I can't. There's a few examples floating around but this is new territory. I feel like I'm about to level up.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...