Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LUA Box unit and save
2018-04-19, 10:48 AM
Post: #1
LUA Box unit and save
I would like to propose three things for LUA Box
function Init(I)
This would be called when:
  • Vehicle is pulled into play
  • LUA Box is started
  • LUA Box is repaired
This would allow us to set some variables to in game values like current position, velocity, etc.
function Save(I)
This would be called when:
  • Vehicle is despawned
  • LUA Box is stopped
  • LUA Box is destroyed
This would allow us to save some things to some sort of storage.

Storage
This is object that is presistent between game sessions and can be declared by user.
This would allow us to create self tuning PIDs for example.
Find all posts by this user
Quote this message in a reply
2018-04-19, 11:05 AM
Post: #2
RE: LUA Box unit and save
I like these ideas, I have added that thread to my todo list, but it may take some time before I decide to go for a Lua update.
Find all posts by this user
Quote this message in a reply
2018-04-19, 10:18 PM
Post: #3
RE: LUA Box unit and save
To be honest I would go for some object oriented language, something like java or c++. Preferably something with (pre) compilation to allow it to be faster, along with support for loading scripts.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)