Hi.
Is there someone enough good at Unity plugin (LUA) to help me about these :
I need to declare global data for main player informations. Main player movements/interactivity are not handled by LUA but onyl by DBP and, DBP will send informations in real time to Unity.
1. How can I declare a structured type like it should be in DBPro :
Type PlayerOBJECT_T
ObjectID As Integer
XPos As Integer
YPos As Integer
ZPos As Integer
Hidden As Integer
EndType
Global PlayerOBJECT As PlayerOBJECT_T
2. If I define a variable content somewhere like this inside a function :
NEWObject = { ObjectID = ObjectID, PathID = Path, CurrentNode = 1, Speed = Speed }
If I want to declare somewhere Else in another function :
NewObject = { PlayerVISIBLE = 1 }
Will I get the same NewObject with all variables in ?
(ObjectID, PathID, CurrentNode, PlayerVISIBLE) or two separate local ?
If I want all to be the same variable, Should I declare as global and how ?
Thank you for all informations any one should provide.
Regards,
Fred