Jump to content

Recommended Posts

Been looking through a lot of components trying to understand how they work. I keep coming across some functions that I cannot find a real reference to. One is testfn() where exactly is it initialized? Perhaps I am just not comprehending the LUA environment too well.

 

Also I see many functions calling on GetPosition() which again I am unable to find any reference to what it takes into account.

 

If anyone could shed some light on where these functions are being initialized so I could better understand what is going on I would really appreciate it.

 

Thanks.

Link to comment
https://forums.kleientertainment.com/forums/topic/49681-question-on-functions/
Share on other sites

@Ubiquitous, Find-in-Files is your best friend in this area (set it to search within the scripts folder). Since functions are variables in Lua, they can be set and changed from pretty much anywhere. I talked about how you do this in a mod in the Lua Guide part of my guide (objects as tables).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...