Lun Pre Set Varables

View previous topic View next topic Go down

Lun Pre Set Varables

Post by Doc on Wed Dec 29, 2010 12:59 pm

I need to know ho you get the X, Y, Z, rotation of the Base chip. I'm makin a UFO! Very Happy

(if you could list all the other ones to like, Altitude, X position, Z position, FPS, Weight, etc)
avatar
Doc
Car
Car

Posts : 23
Join date : 2010-10-10
Location : On the edge of nowhere

View user profile

Back to top Go down

Re: Lun Pre Set Varables

Post by RA2lover on Wed Dec 29, 2010 3:19 pm

RCLua has built-in functions for that.

_AX(),_AY() and _AZ()(in radians)

anyway, positions can be accessed by using _X(),_Y() and _Z().(in meters).

the altitude is measured by using _H(), but it only works on objects up to 10m height from ground.

FPS can be measured by _FPS()(but it updates only once per second), and weight can be measured by _WEIGHT()(kilograms).

anyway, how the heck did you manage to misspell lua with a key that far from "a"?
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: Lun Pre Set Varables

Post by JHaskly on Thu Dec 30, 2010 8:10 am

Altitude is _Y(). Height above ground is _H().

_________________
Previously (and currently) known as Juz.

Please do not write "LUA", beause it's "Lua". It's Moon in Portuguese, not a Limited User Account, Last Universal Ancestor, or the Lukla Airport in Nepal.

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 21
Location : Brisbane

View user profile

Back to top Go down

Re: Lun Pre Set Varables

Post by Doc on Thu Dec 30, 2010 10:17 am

ohh umm... it sounds like "Luna" to me opps.. if an admin can change that.. thanks lol
avatar
Doc
Car
Car

Posts : 23
Join date : 2010-10-10
Location : On the edge of nowhere

View user profile

Back to top Go down

Re: Lun Pre Set Varables

Post by JHaskly on Thu Dec 30, 2010 2:27 pm

You have the permissions to change yourpost title, I think.

_________________
Previously (and currently) known as Juz.

Please do not write "LUA", beause it's "Lua". It's Moon in Portuguese, not a Limited User Account, Last Universal Ancestor, or the Lukla Airport in Nepal.

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 21
Location : Brisbane

View user profile

Back to top Go down

Re: Lun Pre Set Varables

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum