Page 1 of 1
Question about map-features?
Posted: 31 May 2010, 07:49
by smoke_th

Is there any way to put on map some random units that will be fight back when someone approaches? All features are static and goddamn its just boring. I need know a way to put some unit on map. Maybe some widget that i can put in map archive and script example for put in archive too?

Re: Question about map-features?
Posted: 31 May 2010, 09:37
by zwzsg
Yes, spawn some units belonging to Gaia team. You need a gadget for that, widgets can't change the game state, they can only do what a player can.
Spring.CreateUnit("lvl1seal",x,y,z,"south",Spring.GetGaiaTeamID())
Re: Question about map-features?
Posted: 31 May 2010, 15:30
by smoke_th
=) OK now some hilarious question.Where i need to put this code?
What file? In what folder in archive folder tree?
P.S. I'm wondering that gaia its link to old Age of Empires meme where all neutral units was on Maya side. :D
Re: Question about map-features?
Posted: 01 Jun 2010, 06:28
by Forboding Angel
Featureplacer can do it a lot more simply.
GAIA is the map's "Team". Neutral player (that will happily attack you).