Jump to content
BlackbirdSD

Attach AI to random start building?

Recommended Posts

I have a tower that is my mission end point and that tower has 4 random start positions.  Instead of having enemy guards and chopper surrounding all 4 possible positions, I would like all of those AI to spawn in the same spot the tower does.  Is this possible?

 

Thanks

Share this post


Link to post
Share on other sites

Here there is a script : 

 where replacing:

 

_unitNew setPos _unitPos;

with this:

 

_unitNew setPos (getPos _NameOfBuilding);

should do the trick. Among with some other changes but nothing too serious.

  • Like 2

Share this post


Link to post
Share on other sites

To start adjacent to an object

= = = = = = = = = = = = = = = =

 

In this example soldier green1 starts 20 meters to the east and 30 meters to the north of a truck named truck1

 

green1 setPos [(getPos truck1 select 0) +20, (getPos truck1 select 1) +30]; 

 

 

+20 = East side   -20 = West side

 

+30 = North side   -30 = South side

 

 

 

 

 

 

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×