Hi
I tried to change the crate actions in misc.yaml
	GiveUnitCrateAction:
		Units: harv
		SelectionShares: 8 	
Whatever unit I choose, it is not given to the player who found the crate, it is just a white unit that does not belong to anyone.
What am I doing wrong?
			
			
									
									
						GiveunitcrateAction?
- Materianer
 - Posts: 199
 - Joined: Mon Jul 04, 2016 8:27 am
 
Re: GiveunitcrateAction?
I'm not sure but maybe you need to add:bodomalo wrote: ↑Hi
I tried to change the crate actions in misc.yaml
GiveUnitCrateAction:
Units: harv
SelectionShares: 8
Whatever unit I choose, it is not given to the player who found the crate, it is just a white unit that does not belong to anyone.
What am I doing wrong?
ValidFactions: allies, england, france, germany, soviet, russia, ukraine
Hm, really weird. I just added
and it worked on my end.
			
			
									
									
						Code: Select all
	GiveUnitCrateAction@harv:
		SelectionShares: 699
		Units: harv
:-(abcdefg30 wrote: ↑Hm, really weird. I just addedand it worked on my end.Code: Select all
GiveUnitCrateAction@harv: SelectionShares: 699 Units: harv
Whenever I did it all the units I find are "white" and are enemies.
Do I have to add the @harv ?
ValidFractions did not help or change anything (I tried GDI,NOD as it is cnc)
I tested it in "skirmish" mode on my local PC (not online)
Did anyone try that in Tiberian Dawn, or only Red Alert? (I play Tiberian Dawn)
- MustaphaTR
 - Posts: 203
 - Joined: Mon Aug 04, 2014 6:38 am
 - Location: Kastamonu, Turkey
 
ThanksMustaphaTR wrote: ↑There is a Visceroid crate in TD mod, which has `Owner: Creeps`. `@Harv` should indeed solve your issue, as it would make it create a new instance of trait, rather than overriding Visceroid crate.
Now I understood what to do...