Jump to content
Sign in to follow this  
tankieboy

Hold fire

Recommended Posts

Can someone tell me the code please of the following.

I start the mission as squad leader and need my squad to hold fire.

I know I can select all 3, 2 from the menu but how do I start off with them in the hold fire state?

Thanks in advance.

Share this post


Link to post
Share on other sites

Use unitname setCombatMode "colour"

For example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

unitone setcombatmode "GREEN" (Hold fire - defend only)

OR

unitone setcombatmode "WHITE" (Hold fire, engage at will)

So if you want them to hold fire but stay in formation, use GREEN, but if you want them to run out to engage the enemy while holding fire, use WHITE.

Ah, heck. Here's the lot of them:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

"BLUE" (Never fire)

"GREEN" (Hold fire - defend only)

"WHITE" (Hold fire, engage at will)

"YELLOW" (Fire at will)

"RED" (Fire at will, engage at will)

smile_o.gif

EDIT: Added to FAQ smile_o.gif

[Gareth Gates must die]

Share this post


Link to post
Share on other sites

Cheers.

So I put this in the leaders init line and all the group will hold fire?

Share this post


Link to post
Share on other sites

If you name the group and use the group's combat mode command code, then yes.

To name the group (in case you don't know) put in the leader's init:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">group1=group this

group1 can be anything you want.

If you want certain units to have a particular combat mode, use the single unit command code in their init line. smile_o.gif

[Gareth Gates must die]

Share this post


Link to post
Share on other sites

In the case of the group , you cant just apply the

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitone setcombatmode "GREEN"

with the group1 Skull suggested

You should use (in the init line of the officer)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">group1=group this; COLOR="green"; "_x setcombatmode COLOR" foreach units group1

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  

×