View Single Post
  #189  
Old October 16th, 2006, 02:22 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: Modding SEV Thread Questions

Quote:
President_Elect_Shang said:
Is there a way to build a component which has a restriction that limits the total number that can be carried? For example:

The Mega Toaster
The mega toaster can toast all bread in the blink of an eye; however, due to the power draw only 1 per 100 hull spaces can be used.

*Mega Toaster Inc. is not responsible for burnt slices or charring of crust.
Sure, I guess you'd have to give it some unique ability that does nothing (like "AI Tag 1"), then do a requirement that Get_Component_Ability_Count("AI Tag 1") <= Get_Vehicle_Hull_Tonnage() / 100... (not entirely sure about the names of those functions)

Now if you could just restrict based on component NAME that would be much easier... but I never tried that and don't have the function list handy, so it might already be possible
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote