Mr Sarkey 0 Posted October 9, 2007 Whats the easiest way to create a civlian militia, so US troops will engage them? I've got civs shooting the US using doTarget, doFire, but I cant work out how to make the US shoot back. I could tell them all to doTarget, doFire, is there a way to apply this to a whole squad? Share this post Link to post Share on other sites
sprags 0 Posted October 9, 2007 Here Try this command SuperShooter,Should be able to define Civilian's as East(OPFOR). Share this post Link to post Share on other sites
UNN 0 Posted October 9, 2007 This should do it? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">CIVIALIAN SetFriend [WEST,0]; WEST SetFriend [CIVIALIAN,0] Also you have to make sure you have at least a single civilian and west unit when you execute the above line. Share this post Link to post Share on other sites
weedomatic 0 Posted October 10, 2007 Also you have to make sure you have at least a single civilian and west unit when you execute the above line. UNN, would createCenter accomplish the same without having to place a unit? I saw you commented in the Wiki, maybe you know. (Cannot test, @work). Share this post Link to post Share on other sites
=BFP=Cheetah 0 Posted October 10, 2007 Yup createCenter would prevent the need of east units. A different solution can be foud here- towards the bottom of the page. It involves placing an eastern unit (high rank) and then grouping the civilian and the eastern unit. Share this post Link to post Share on other sites
Mr Sarkey 0 Posted October 10, 2007 This should do it?<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">CIVIALIAN SetFriend [WEST,0]; WEST SetFriend [CIVIALIAN,0] Also you have to make sure you have at least a single civilian and west unit when you execute the above line. I got this... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Error Type Any Expected Side Share this post Link to post Share on other sites
leehunt27 1 Posted October 10, 2007 Cheetah's solution above is the easiest. Sometimes "setfriend" causes mind -boggling lag or crashes, at least for me. Share this post Link to post Share on other sites
Mr Sarkey 0 Posted October 10, 2007 Yup createCenter would prevent the need of east units.A different solution can be foud here- towards the bottom of the page. It involves placing an eastern unit (high rank) and then grouping the civilian and the eastern unit. Ah, the "different" solution worked. Share this post Link to post Share on other sites
UNN 0 Posted October 10, 2007 Quote[/b] ]Error Type Any Expected Side Yeah, a typo, bad spelling of civilian. Quote[/b] ]UNN, would createCenter accomplish the same without having to place a unit? Createcentre on it's own, won't set the allegiance of a side. It was assumed those units are already present, seen as it wasn't stated otherwise? Quote[/b] ]Sometimes "setfriend" causes mind -boggling lag or crashes, at least for me. Never seen that. It should only be called once, so if it lags for you, then perhaps you should log it on the Bug Tracker? For me Setfriend works fine if you want to set any civilian as hostile to a specific side. If it's a specific group of civilians. Then use the old OFP method. Share this post Link to post Share on other sites
weedomatic 0 Posted October 11, 2007 Edit: Didn't notice the other reply, ty Chee. However, now we have two contrasting statements about createCenter. NM, I'll check it out @home. Share this post Link to post Share on other sites
UNN 0 Posted October 11, 2007 Quote[/b] ]However, now we have two contrasting statements about createCenter Can't speak about that. But CreateCentre will initialise, if it isn't already present on the map, the specified side. But AFAIK any side created with the CreateCentre, will be neutral (no allegiance to anyone), unless told otherwise with the SetFriend command. But all this is kind of off topic? Share this post Link to post Share on other sites