(ShpGetSpeed) 'Actual Speed'

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
H Iris
Commonwealth Pilot
Commonwealth Pilot
Posts: 86
Joined: Tue Jun 10, 2008 4:29 am
Location: Crawling out of the primordial slime

I know (ShpGetMaxSpeed) exists as a function.
Is there any way to get the actual speed at a particular instant?
eg. (ShpGetSpeed)
The Earth is just too small and fragile a basket for the human race to keep all its eggs in.
My Tech Blog - Technocratic Education
My Arts Blog - Another Arts Blog
lachlanproject
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

you need objGetVel, it's a new function in 0.99

also objIncVel could be useful
User avatar
H Iris
Commonwealth Pilot
Commonwealth Pilot
Posts: 86
Joined: Tue Jun 10, 2008 4:29 am
Location: Crawling out of the primordial slime

Can objGetVel be used on a ship?

sorry if these are noob questions.
The Earth is just too small and fragile a basket for the human race to keep all its eggs in.
My Tech Blog - Technocratic Education
My Arts Blog - Another Arts Blog
lachlanproject
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

If its name is prefixed with "obj" such as "objIncVel", "objGetRefData", "objSetObjRefData", etc. then it works with all objects. This means ships, stations, planets, asteroids...Only a few of them won't work for stars.
User avatar
H Iris
Commonwealth Pilot
Commonwealth Pilot
Posts: 86
Joined: Tue Jun 10, 2008 4:29 am
Location: Crawling out of the primordial slime

Thanks for that digdug and F50 Ill post an update when the code is finished.
~ Its for a kinetic ram weapon
The Earth is just too small and fragile a basket for the human race to keep all its eggs in.
My Tech Blog - Technocratic Education
My Arts Blog - Another Arts Blog
lachlanproject
Post Reply