Jump to content
Sign in to follow this  
Joe98

SOLVED: Have enemy AI fire smoke to cover their movement.

Recommended Posts

Place yourself on the map on a hill with a good view into the distance.

Place enemy soldiers on the map and give them a move way point.

Place a trigger on the map. The trigger fires as the enemy moves through it.

Place something small on the map just in front of your position. You might choose for example:

Empty -> Objects (small) -> skeet disk

Name the object skeet1

Your friendly troops will see this and report “object front 100 meters†so you need to hide the object. In the init line of the object type:

hideobject this;

In the OnAct cell of the trigger type:

Smoke1="G_40mm_Smoke" createVehicle [(getPos skeet1 select 0),( getPos skeet1 select 1), 20]

Preview. As the enemy trigger that trigger white smoke will rise over the object.

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

To make a wall of white smoke place a line of objects across your front. If you place 3 objects you might name them skeet1, skeet2 and skeet3.

Your trigger now needs 3 commands so that smoke rises over all 3 objects. The 3 commands are:

Smoke1="G_40mm_Smoke" createVehicle [(getPos skeet1 select 0),( getPos skeet1 select 1), 20] ;

Smoke1="G_40mm_Smoke" createVehicle [(getPos skeet2 select 0),( getPos skeet2 select 1), 20];

Smoke1="G_40mm_Smoke" createVehicle [(getPos skeet3 select 0),( getPos skeet3 select 1), 20];

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

Finally, smoke comes in different colours. They are:

White =......G_40mm_Smoke

Red =.........G_40mm_SmokeRed

Green =......G_40mm_SmokeGreen

Yellow =......G_40mm_SmokeYellow

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  

×