Jump to content
Sign in to follow this  
Mr Sarkey

Make civ's baddies

Recommended Posts

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?

huh.gificon_rolleyes.gifhelp.gif

Share this post


Link to post
Share on other sites

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

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
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

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
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

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
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. thumbs-up.gif

Share this post


Link to post
Share on other sites
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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×