Scripts / Global.lua question

Author
Message
GreekToMe
15
Years of Service
User Offline
Joined: 27th Oct 2009
Location: Colorado, USA
Posted: 28th Jun 2020 21:36
Hi,
I've been spending sometime going through global.lua and trying to get an idea of the various calls available. Well, from about line number 1112 (as listed via notepad ++) all the way to end about line 2016 the code is commented out.
Is the code there in case we run into some legacy code for reference, or it still useful ? Or is my copy of the file an older outdated one. I do get my files updated via steam, so I would think I have the latest copy.
Cheers!
Alexis A
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Jun 2020 22:27
That is just a reference for the engines functions.
Been there, done that, got all the T-Shirts!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th Jun 2020 00:00
they are commands you can use but haven't got their actual functions exposed in global.lua
i.e. using SetCameraAngle ( c, x, y, z ) is fine, you just can't change the function itself (which isn't really a good idea anyway)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GreekToMe
15
Years of Service
User Offline
Joined: 27th Oct 2009
Location: Colorado, USA
Posted: 29th Jun 2020 15:32
@smallg and AmenMoses.
Much appreciate your responses. Good to know there are so many more commands available. You guys have used them at times , right?
Cheers!
Alexis A
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 29th Jun 2020 20:16
Yes, there are a bunch more functions in the modules: utillib.lua & physlib.lua!
Been there, done that, got all the T-Shirts!
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 29th Jun 2020 21:04
And the particle system too.
About the player control commented lines, I do not use them yet, but they look to me like a bit hardcoded most of them, at least not most friendly use.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-12-22 03:00:20
Your offset time is: 2024-12-22 03:00:20