1) Let's say I have the following DB code:
Type tCharacter
name as string
strength as integer
health as integer
EndType
Dim Player as tCharacter
Now let's say I have the following LUA script called "Player.lua"
Player = {
name = "David",
strength = 10
health = 100
}
My question is the following:
Is there a function or one line command that I can use that will set the 3 variables of the new Player to the values stored in the lua script without having to iterate thru each variable; in otherwords, in one command line or a function call:
Player = "Player.lua"
2) My second question is how have you integrated a world editor with scripting? For example, do you import an object's initial position values from a script or from a world editor?
THX