tankieboy 0 Posted December 20, 2003 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
Skul 0 Posted December 20, 2003 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) EDIT: Added to FAQ [Gareth Gates must die] Share this post Link to post Share on other sites
tankieboy 0 Posted December 20, 2003 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
Skul 0 Posted December 20, 2003 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. [Gareth Gates must die] Share this post Link to post Share on other sites
sanctuary 19 Posted December 20, 2003 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