ZZEZ
-
Content Count
106 -
Joined
-
Last visited
-
Medals
Posts posted by ZZEZ
-
-
Ok, i tryed to put some enemys inside the house and outside it, yes they stayed in place but they wasnt trying to shoot me or my teammates even i was front of of their faces.:confused:Set the ai skill level to maximum or very high, I had the same issue of ai not firing at dude with dostop command till I cranked up the skill level.
-
ok I just finished testing in dedicated and all I can say is great success!

Anyway, I just copied over shk's code so it looks like this:
init.con
//===================ARREST HVT ACTIONS SERVER if (isServer) then { [-1, {hvt1 addaction ["Arrest HVT","rescuePows.sqf",[],1,false,true,"","(_target distance player) < 3"]; hvt2 addaction ["Arrest HVT","rescuePows.sqf",[],1,false,true,"","(_target distance player) < 3"]; hvt3 addaction ["Arrest HVT","rescuePows.sqf",[],1,false,true,"","(_target distance player) < 3"]; hvt4 addaction ["Arrest HVT","rescuePows.sqf",[],1,false,true,"","(_target distance player) < 3"];}] call CBA_fnc_globalExecute; };rescuepows.sqf
_t = _this select 0; [_t] joinsilent group player; //_t removeaction (_this select 2);
To get around the ai shooting each other I set them as captive if they are unarmed, the script gives them 50% chance to be unarmed or not[they must be armed opfor as standard] and then accordingly broadcast objective complete/failed.
bla4 is public variable thats declared false, hvt1 is the dude in question..when you want the script to end just declare it as true.
if(isServer) then { If (!bla4) then { _rand1 = round(random 1); if (_rand1 == 0) then { while {!bla4} do { if (!alive hvt1) then { [-1, {"1" objStatus "DONE"; tskobj_1 setTaskState "SUCCEEDED"; objective2 = true; publicvariable "objective2";}] call CBA_fnc_globalExecute; }; sleep 1; }; }; if (_rand1 == 1) then { removeallweapons hvt1; hvt1 setCaptive true; while {!bla4} do { if (!alive hvt1) then { [-1, {"1" objStatus "FAILED"; tskobj_1 setTaskState "FAILED"; objective2 = true; publicvariable "objective2";}] call CBA_fnc_globalExecute; }; sleep 1; }; }; }; }; -
Thanks shk, I'll try that
@fencr0c - I use the CBA command "call CBA_fnc_globalExecute" so its actually executing on all clients and I know that it works because no where else is the arrest option is executed but I get that option after renaming/leaving my group or looking at the corpse of the hvt, its weird..the game is letting me arrest dead hvt but not a living one unless I abandon my group
-
Hey.
I'm having a problem with a mission I am working on, it evolves arresting 4 HVTs - this is working fine in local server but as soon as I enter dedicated the problems start mounting, I use this script to arrest the HVTs and get them to follow the player:
In the init.con
I did that because I learned that addaction is local
//===================ADD ARREST HVT ACTIONS SERVER if (isServer) then { [-1, {POWS = [hvt1]; hvt1 addAction ["Arrest HVT","rescuePows.sqf",[POWS],1,false,true,"","(_target distance _this) < 3"];POWS2 = [hvt2]; hvt2 addAction ["Arrest HVT","rescuePows.sqf",[POWS2],1,false,true,"","(_target distance _this) < 3"];POWS3 = [hvt3]; hvt3 addAction ["Arrest HVT","rescuePows.sqf",[POWS3],1,false,true,"","(_target distance _this) < 3"];POWS4 = [hvt4]; hvt4 addAction ["Arrest HVT","rescuePows.sqf",[POWS4],1,false,true,"","(_target distance _this) < 3"];}] call CBA_fnc_globalExecute; };The script itself:
////////////////////////////////////////////////////////////////// // Function file for Armed Assault // Created by: kylania ////////////////////////////////////////////////////////////////// _per = _this select 0; // Person who had the addAction _ldr = _this select 1; // Person who used the addAction _act = _this select 2; // ID of the addAction // Group given in the arguments section (ie: [POWS] _grp = _this select 3 select 0; // Remove the rescue option - disabled for now //_per removeAction _act; // Join preselected units (POWS) to callers group, silently. {[_x] joinSilent _ldr} forEach _grp;Now this is all working fine and dandy in local server, I can walk up to the HVTs and the action pops up on all of em, I can arrest all of them and put them inside a Humvee and drive away.
When I try doing that in Dedicated..where do I start - I don't even get the addAction option to arrest them, I can fix it by leaving or renaming my group using another script[i disabled it to test it if was causing it and nope] but its annoying that the players have to rename their groups to get that action.
After that - when 1 ai gets in to the Humvee the rest will refuse to enter it and if that ai gets in to the gunner seat he will start gunning down the other HVTs even that they are in my group....
So..what the heck?how can I fix the addaction and stop the hvts from gunning down the other hvts?
Oh I forgot to mention - the addaction actually appears without leaving the group on the HVTs only if they are dead so...its not really being useful
-
Hey.
I'm working on my mission, its basiclly capturing 4 HVTs and obtaining a briefcase.
How do I make the HVTs spawn in pre-defined positions randomly?theres a catch to that - only 1 HVT per location and if possible I want briefing picture to change based on who the HVT is[hvt1, hvt2, hvt3, hvt4], I took pictures of their faces for the briefing, I want the map marker to change according to their position but without it tailing them throughout the mission.
Also, is there a way to have the mission randomly decide if the HVT is armed or not and then accordingly have objective complete if you kill him but failed if he is unarmed and you kill him?
Please help a confused newbie, I searched quiet abit but I found nothing.
Clearing area from rocks/trees
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted
Hey
Is there a way to clear certain section of the map[or even the entire map] from trees/rocks from within the mission?I searched but didn't find an answer