"Unity" does NOT refer to the "other" game engine, it refers to a plugin for DarkBasic, which allows the combination of DarkBasic and Lua programming.
I have been wondering about this for a long time (If anybody knows the answer I would be happy to hear it):
??can we use Unity Lua functions in FPSR Lua scripting??
Unity gives a large number of very useful functions to include in out Lua scripts. Copying for the Unity manual:
"Functions available to your scripts are:
PositionObject ( object number )
RotateObject ( object number, angle x#, angle y#, angle z# )
MoveObject ( object number, speed# )
PointObject ( object number, target x#, target y#, target z# )
x#, y#, z# = ObjectInfo ( object number)
x#, y#, z# = ObjectRotation ( object number )
dist# = ObjectPointDistance ( object number, x2#, y2#, z2# )
dist# = GetDistance (x1#, y1#, z1#, x2#, y2#, z2# ) ..."
Some of these already exist in the current FPSCR version (e.g., "MoveObject" is "MoveForward"). Other do not exist, and they would come real handy. For instance I would love to have "x#, y#, z# = ObjectRotation ( object number )" (tomjscott, are you listening?).
If the answer to my question is YES, it should be VERY easy to modify FPSCR (say in the next release) so that we get access to all the Unity functions. Maybe I should post this to fature creep.
TK
PS: You may wonder where I got the idea that Unity exists inside FPSCR. Two reasons.
1. I would bet good money that TGC are building FPSCR using DarkBasic and some Lua tool, so Unity would be the most natural one.
2. A small trace of Unity is visible in FPSCR, namely the functions SendMessage, SendMessageI, SendMessageF, SendMessageS. These appear in the global.lua of FPSCR and come straight from Unity.
Whereof one cannot speak thereof one must be silent