.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00


Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old December 7th, 2006, 06:19 PM

Raapys Raapys is offline
First Lieutenant
Join Date: Jan 2005
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
Raapys is on a distinguished road
Default Component-dependant engines

I've introduced power reactors to the game, basically just a generic component, and I'm trying to get the engines dependant on it being present for them to work. Since it's not possible to add new 'abilities' from what I could find out, that means I had to use the Get_Design_Specific_Component_Count() function. I first tried putting it in the 'to use' requirement field of the engine without any luck, then I tried using it in the 'movement amount' formula on the engines( i.e. tried setting movement point amount to 0 if no reactor present).

There's simply no way this will work. My two test designs, one with reactor another without, always fly at the same speed. I tried getting a little creative after a while, but alas, reactor or not, it doesn't make any difference between the two ships' speeds. They both fly either 1-2 m/s, or 10 m/s, dependant on how I set up the formula, while I basically want the one with the reactor to fly 10 m/s and the one without to fly 1 m/s( or 0 m/s, but that doesn't seem to be possible).

If it wasn't for my very limited capabilities, I'd say the function didn't work properly making it unable to find the reactor component.

Any ideas?
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -4. The time now is 05:43 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2023, Shrapnel Games, Inc. - All Rights Reserved.