Jump to content
Play3r

Make Civilian fire at BluFor

Recommended Posts

I want to have a Civilian fire at a BluFor force.

But i don't want all of the civilians to be against the BluFor only one Civilian (HVT who wants to fight his way out of  trouble)

i am using the Civilian present module the same way that SayUnkl does in this video:

 

 

I have tried with :

 in INIT:

SetSide East; HVT1 setBehaviour "COMBAT";  

 

Does Anyone know a way to make it work.

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Most reliable way would be to have an opfor unit join the civilian side, then when needed let him join opfor side again.

Editor placed (and spawned) civilians use a different FSM than east/west/ind units and aren't as capable in combat.

Something like this:

 

//opfor unit init field:
[this] join createGroup civilian;


//when you need to make the unit fire:
[yourUnit] join createGroup east;
{
	yourUnit reveal [_x,4];
}forEach (yourUnit nearEntities 500);//reveal everything to the unit within 500m to force an immediate reaction

Cheers

  • Like 4

Share this post


Link to post
Share on other sites
1 hour ago, Grumpy Old Man said:

Most reliable way would be to have an opfor unit join the civilian side, then when needed let him join opfor side again.

Yep that's the way to do it.  Yay, Grumpy is back!  :)

Share this post


Link to post
Share on other sites

I went at it differently. I spawned an OPFOR man and forceuniform'd him into some civvy clothes.

  • Like 1

Share this post


Link to post
Share on other sites

One of good things about this method is that if Blufor shoot him, they won't get a rating penalty

  • Like 1

Share this post


Link to post
Share on other sites
8 hours ago, Play3r said:

Civilian (HVT

 

Hello there Play3r !

 

I have some missions for example if you want to check here :

 

Share this post


Link to post
Share on other sites
5 hours ago, Tankbuster said:

One of good things about this method is that if Blufor shoot him, they won't get a rating penalty

Good point TB!

  • Like 1

Share this post


Link to post
Share on other sites

For example, my suicide bombers, courtesy of @sarogahtyp script ,to look like suicide bombers, they have to be in civvy clothes, but sometimes the players suss him out before he gets to them and shoot him dead, so he can't be a real civ.

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Tankbuster said:

For example, my suicide bombers, courtesy of @sarogahtyp script ,to look like suicide bombers, they have to be in civvy clothes, but sometimes the players suss him out before he gets to them and shoot him dead, so he can't be a real civ.

Mine are full civilian, in middle of civilians. So, no AIs can't shoot at them, even they are the target (in player's group). The only thing you can detect is the explo vest and the "Allahackbar" shout. You have very few seconds to run/drive away or shoot at him. Perfectly stressful.

Share this post


Link to post
Share on other sites
12 hours ago, johnnyboy said:

Yay, Grumpy is back!  :)

I was never gone

Spoiler

just camouflaged

 

Cheers

  • Like 2

Share this post


Link to post
Share on other sites
37 minutes ago, Grumpy Old Man said:

just camouflaged

 

Monty Python OFP style? :rofl::rofl:

Old but still funny! :happy:

  • Like 2
  • Haha 3

Share this post


Link to post
Share on other sites

 

On 30/11/2018 at 3:07 PM, Grumpy Old Man said:

Most reliable way would be to have an opfor unit join the civilian side, then when needed let him join opfor side again.

Editor placed (and spawned) civilians use a different FSM than east/west/ind units and aren't as capable in combat.

Something like this:

 


//opfor unit init field:
[this] join createGroup civilian;


//when you need to make the unit fire:
[yourUnit] join createGroup east;
{
	yourUnit reveal [_x,4];
}forEach (yourUnit nearEntities 500);//reveal everything to the unit within 500m to force an immediate reaction

Cheers

 

Sorry for the late reply G O M

 

i have here to night tried your idea.

My scenario is this to be exactly  

You as BluFor enters a village with Civilians (made with CivilianModule) it is Working

When you enter the Village ONLY One Civilian will be hostile against BluFor,

 

I have tried to make it happen in VR but it does not seem to work for me,


Placed a OpFor and put inside his INIT :[CivileChef] join createGroup civilian;      // CivileChef is the OpFor unit

i have put down a trigger 150+150 to be actived by BluFor 

Trigger is repeatable.

in ACT i have : 

Hint"insideTrigger";

 ShotCivile reveal [_x,4];                                        // ShotCivile is the Civilian you has to kill
}forEach (ShotCivile nearEntities 200);

 

In Dea:

[ShotCivile] joinSilent grpNull;hint"outsideTrigger";


But the Civilian does not engage me he just runs around

Do i have to make the ShotCivilian join the OpFor Group Civilian ?

or am i just doing it wrong?  apparently c",)

 

Share this post


Link to post
Share on other sites
13 hours ago, Play3r said:

 

 

Sorry for the late reply G O M

 

i have here to night tried your idea.

My scenario is this to be exactly  

You as BluFor enters a village with Civilians (made with CivilianModule) it is Working

When you enter the Village ONLY One Civilian will be hostile against BluFor,

 

I have tried to make it happen in VR but it does not seem to work for me,


Placed a OpFor and put inside his INIT :[CivileChef] join createGroup civilian;      // CivileChef is the OpFor unit

i have put down a trigger 150+150 to be actived by BluFor 

Trigger is repeatable.

in ACT i have : 

Hint"insideTrigger";

 ShotCivile reveal [_x,4];                                        // ShotCivile is the Civilian you has to kill
}forEach (ShotCivile nearEntities 200);

 

In Dea:

[ShotCivile] joinSilent grpNull;hint"outsideTrigger";


But the Civilian does not engage me he just runs around

Do i have to make the ShotCivilian join the OpFor Group Civilian ?

or am i just doing it wrong?  apparently c",)

 

Well you make your hostile unit join grpNull, doesn't really do what you wanted initially, so why not use my example and go from there?

If you want the unit to go hostile as soon as he detects blufor units it could be as simple as:

//unit init field:

[this] join createGroup civilian;

waiting = this spawn {
	_targets = [];
	waitUntil {
		_targets = _this nearTargets 500 select {_x#2 isEqualTo west};
		_this globalChat format ["Spotted %1 blufor",count _targets];
		count _targets > 0
	};
	[_this] join createGroup east;
	{
		_this reveal [_x#4,4];
	}forEach _targets;
};

Play with unit skills, spotting skill etc., lots of stuff to tweak in a case like this.

 

Cheers

Share this post


Link to post
Share on other sites
7 hours ago, Grumpy Old Man said:

Well you make your hostile unit join grpNull, doesn't really do what you wanted initially, so why not use my example and go from there?

If you want the unit to go hostile as soon as he detects blufor units it could be as simple as:


//unit init field:

[this] join createGroup civilian;

waiting = this spawn {
	_targets = [];
	waitUntil {
		_targets = _this nearTargets 500 select {_x#2 isEqualTo west};
		_this globalChat format ["Spotted %1 blufor",count _targets];
		count _targets > 0
	};
	[_this] join createGroup east;
	{
		_this reveal [_x#4,4];
	}forEach _targets;
};

Play with unit skills, spotting skill etc., lots of stuff to tweak in a case like this.

 

Cheers

It works great but the Civilian does not follow the Wp i have set up for him to follow, but he does react to BluFor.

He just stand still and waits for me to walk up to him, It is my plan to have him walk around in the Village so he wont be in the same spot every time..

 

Cheers

Share this post


Link to post
Share on other sites
13 minutes ago, Play3r said:

It works great but the Civilian does not follow the Wp i have set up for him to follow, but he does react to BluFor.

He just stand still and waits for me to walk up to him, It is my plan to have him walk around in the Village so he wont be in the same spot every time..

 

Cheers

This is the first post in this thread where you mention waypoints.

 

Waypoints are stored per group, so upon joining the civ group all waypoints are gone, since it's a new group.

You can use copyWaypoint to carry waypoints from one group over to another one.

 

Cheers

Share this post


Link to post
Share on other sites

Hi GOM

Yes this is first time i did not know that it had a influence.

you write that i have to COPY WP from another Group.

is your idea that i make a unit WP around the village and the HIDE the unit and i COPY the WP from him to my Civilian ?

So my ShotCivilian INIT will look like this:

 

[this] join createGroup civilian;

civilian copyWaypoints CivilianWP   // but how do i make a Group called CivilianWP and that keeps his WP or do i use the CALLSIGN given by he Game like Alpha 1-1??

waiting = this spawn {
    _targets = [];
    waitUntil {
        _targets = _this nearTargets 500 select {_x#2 isEqualTo west};
        _this globalChat format ["Spotted %1 blufor",count _targets];
        count _targets > 0
    };
    [_this] join createGroup east;
    {
        _this reveal [_x#4,4];
    }forEach _targets;
};

 

Thanks for the help, GOM sorry if i don't understand so much of this scriping thing.

i have looked at :

https://community.bistudio.com/wiki/groupId
https://community.bistudio.com/wiki/setGroupId

But i just don't get it how to make a group that keeps his WP 

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

×