Jump to content
Sign in to follow this  
gersen

make civilian shoot

Recommended Posts

I can make the civilian shoot at me.

The problem is that we are 1 meter apart and they move away before start shooting. I want them shoot immediately, like the opfor. How?

Share this post


Link to post
Share on other sites

the easiest way IMO to do this is redress an enemy in civ gear. use JShock redress script makes it very easy. trying to have civ shoot is more difficult.

Share this post


Link to post
Share on other sites

Earlier, I made a fake hostage script,based on this http://www.armaholic.com/page.php?id=14488 by taco3866521.

My fake hostage script is :

// execute with in units initline.
// _null = [this] execVM "fakehostage.sqf"
// hostage
_CivnotRescued = true;
_man = _this select 0;
_man setcaptive true;
_hostageact1 = _man addaction ["Disengage","hostagevars.sqf"];

while {_CivnotRescued} do {

_man switchMove "UnaErcPoslechVelitele1";
_man enablesimulation false;
sleep 1;
if (not(captive _man)) then {_CivnotRescued = false};
if (not alive _man) exitwith {_man removeaction _hostageact1};

};

_man removeaction _hostageact1;
_man enablesimulation true;
_man disableAI "MOVE";

if (alive _man) then {
player distance _man < 1.2 && stance player == 'CROUCH';
player attachto [_man,[0,-0.9,0]];
player setdir 0;
player switchmove "AinvPknlMstpSnonWrflDnon_medic";
sleep 5 ;
player switchmove "AinvPknlMstpSnonWrflDnon_medicEnd";
sleep 1;

player switchmove "";

_man switchmove "SitStandUp";
detach player;
sleep 2;

_man enableAI "MOVE";
// just put // before this if you dont want the unit to join your group
[_man] joinsilent player;
// here comes the fake "hostage" part

};

sleep 30;

_man setCaptive false;
[_man] joinsilent grpNull;
_man addMagazines ["6Rnd_45ACP_Cylinder", 2]; 
   _man addWeapon "hgun_Pistol_heavy_02_F";
_man reveal player;


_man doTarget player;
sleep 2;
while { alive player} do {
_man fire (currentWeapon _man);
};

Maybe help to you.

Share this post


Link to post
Share on other sites

thanks, this is what I was looking for:

while { alive player} do {

_man fire (currentWeapon _man);

};

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  

×