Velex
New Member
- Reaction score
- 1
Ok, currently i am making a map, and i am trying to add an AI. Each player playing has only 4 squares of building space and has to move to other parts of the map to find more. To make my AI i need builders to build structures on these induvidual squares. Is there a way to do this without making a reagon for every square, then determining the current location of the builder and building a structure on that spot.
If that is not to clear ill try to make it easyer to read
-How do you make a unit build on a spot relative to its position?
-Make the unit know when all the spots are full nearby and must expand to find more build areas?
Heres what i did:
Build Structure
Events
Unit - A unit enters (Playable map area)
Conditions
((Owner of (Triggering unit)) controller) Equal to Computer
Actions
Unit Group - Pick every unit in (Random 1 units from (Units within 1500.00 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Building point))) and do (Unit - Order (Triggering unit) to build a TroopProducer[(Point-value of (Triggering unit))] at (Position of (Picked unit)))
If that is not to clear ill try to make it easyer to read
-How do you make a unit build on a spot relative to its position?
-Make the unit know when all the spots are full nearby and must expand to find more build areas?
Heres what i did:
Build Structure
Events
Unit - A unit enters (Playable map area)
Conditions
((Owner of (Triggering unit)) controller) Equal to Computer
Actions
Unit Group - Pick every unit in (Random 1 units from (Units within 1500.00 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Building point))) and do (Unit - Order (Triggering unit) to build a TroopProducer[(Point-value of (Triggering unit))] at (Position of (Picked unit)))