Quick question

Sebiche

is better than you
Joined
Oct 2, 2006
Messages
382
Location
Mexico City (Im not Mexican though)
How could I make it so that an ICBM can move through open territorry (like a regular unit, hold its range and ability, but if attacked it is captured?
 
Set it up like a worker? Won't have any AI to do what you want though. And to fix that is some hard SDK work.
 
Looking at the XML it looks like if you change the <Domain> tag from DOMAIN_IMMOBILE to DOMAIN_LAND it should work. Then set the <Capture> tag to read UNIT_ICBM, this should allow you to capture the ICBM. I didn't test this code.
Code before change:
Code:
		<UnitInfo>
			<Class>UNITCLASS_ICBM</Class>
			<Type>UNIT_ICBM</Type>
			<UniqueNames/>
			<Special>SPECIALUNIT_NUKE</Special>
			<Capture>NONE</Capture>
			<Combat>NONE</Combat>
			<Domain>DOMAIN_IMMOBILE</Domain>
			<DefaultUnitAI>UNITAI_ICBM</DefaultUnitAI>
			...
Code after change:
Code:
		<UnitInfo>
			<Class>UNITCLASS_ICBM</Class>
			<Type>UNIT_ICBM</Type>
			<UniqueNames/>
			<Special>SPECIALUNIT_NUKE</Special>
			<Capture>UNIT_ICBM</Capture>
			<Combat>NONE</Combat>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_ICBM</DefaultUnitAI>
			...
 
thank you all

(why do the same people always answer?)
 
Top Bottom