Scripts / V007 Globals Defined

Author
Message
Go Devils
11
Years of Service
User Offline
Joined: 13th Aug 2012
Location: Phoenix Arizona USA
Posted: 6th Jun 2014 21:28 Edited at: 7th Jun 2014 00:50
Hi All,



I'm still learning LUA. As a basic programmer it does not look all that hard. To me more complex is the implementation with FPSR.



The following are the UpdateEntity code from the V007 global LUA script



I'm hoping that I can use the forum knowledge to create a chart defining each of the entity values, along with a brief explanation of the range of each value, plus a brief explanation of how this variable is used during game play.



With the answeres I'll put them into a table that could be used as part of the LUA FAQs and such



Here it is..



FPS Reloaded / LUA

From Globals script in beta007





What are “SMALL” and “RT” Entities????
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 6th Jun 2014 21:38
I think UpdateEntity* functions are meant to be called by engine only, and those functions update all the entity variables for us to use in LUA. You shouldn't call them from your code.

tomjscott
User Banned
Posted: 6th Jun 2014 22:29
I was told that the UpdateEntity function could be called to jog the physics. I never did get around to trying it though. So, to better explain, I saw an issue where if I had a barrel stacked on top of a box and then I ran a script that caused the box to get destroyed underneath the barrel then the barrel ended up just stuck in mid-air. So, the idea was that if I called this update function then the physics would get a jolt and the barrel would fall. Now, why there are multiple update entity functions I have no clue.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.007
tomjscott
User Banned
Posted: 6th Jun 2014 22:32
Also, it is possible they may have fixed the physics issue in 1.007 and there might not be a need to jog it anymore. I would have to test to see.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.007
The Next
TGC Web Engineer
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 7th Jun 2014 00:48
Please use code blocks for code snippets, I have altered your first post.

Windows 7 Pro, Intel i7 3.8 GHz, 16GB DDR3, NVIDIA GTX 780 4GB Superclocked
PM

Login to post a reply

Server time is: 2024-04-20 07:40:31
Your offset time is: 2024-04-20 07:40:31