Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [Unity] LUA Question - How to define ???

Author
Message
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 31st Mar 2008 12:57
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 :


2. If I define a variable content somewhere like this inside a function :

If I want to declare somewhere Else in another function :


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

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor

Login to post a reply

Server time is: 2024-11-23 02:52:31
Your offset time is: 2024-11-23 02:52:31