Jump to content
Sign in to follow this  
morthawt

Make new AI units use a previous waypoint?

Recommended Posts

Is it possible to add new AI unites and have them follow a waypoint system I already set up for other units?

Share this post


Link to post
Share on other sites

You should be able to, you could in arma2/oa using copyWaypoints.

The only problem was that the original unit needed to stay alive. You usually just use unit hideobject true and unit allowdamage false to keep him alive.

It would have been nice if you could have used a gamelogic instead, but doing that gives odd results.

Laying paths would be a nice addition if you could just place them without having to use an AI/player unit.

Share this post


Link to post
Share on other sites

So what exactly do I need to do to add other groups of AI to use the same path as another that has already been set up? I don't see anything to do with copyWaypoints

Share this post


Link to post
Share on other sites

The unit does not have to be alive, you can just deleteVehicle them at the start.

Unit init:

AttackWaypoints = group this; deleteVehicle this;

then in a script or trigger:

groupName copyWaypoints AttackWaypoints;

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
Sign in to follow this  

×