-
Content Count
2047 -
Joined
-
Last visited
-
Medals
Everything posted by 1para{god-father}
-
How to Remove all Objects
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So would my Objects be, as that does not work , or am I missing something ? _myObj = _bg1,_cb1,_cb2,_cb3,_cb4,_rb1,_rb2,_rb3,_rb4_s1,_s2,_s3,_s4,_s5,_s6,_b1,_b2,_rw1,_rw2,_sg1,_sg2; -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
OK Just tested it again not sure why but now it does work, maybe i forgot to save it !!! Thanks for all your help ! -
Grouping and Waypoints
1para{god-father} posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Sorry but just can not work it out , I have spawned in 4 vehicles and i need "VIP2" to load into _veh2 , then group them and move them to the WP use a waituntill - untill any of the vehicles are destroyed - to spawn stuff in.. so far i have.... _veh1 = [_convoystart, 001, "Ural_INS", east] call bis_fnc_spawnvehicle; _veh2 = [_convoystart, 001, "SUV_TK_EP1", east] call bis_fnc_spawnvehicle; ////move vip2 on map into SUV////// vip2 moveInCargo _veh2; vip2 moveInCargo _veh2; _veh3 = [_convoystart, 001, "Ural_INS", east] call bis_fnc_spawnvehicle; _veh4 = [_convoystart, 001, "Ural_INS", east] call bis_fnc_spawnvehicle; (units _veh1 + units _veh2 + units _veh3 + units _veh4) joinSilent _grp; ////add waypoints _wp1 = _grp addWaypoint [_convoyend, 1]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointSpeed "FULL"; ////need to wait untill any of them are destroyed to spawn stuff in waitUntil{({!alive _x} count [_veh1,_veh2,_veh3,_veh4]) != 0}; ////Spawn stuff here .... -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks mate ,I did wounder why they was in that order :) Sorry but that also does not work for some reason ? I never get the hint, is it something to do with them being in a Group ? -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
OK I thought I had this working but the Check to see if any Vehicle has been destroyed just does not work I never get the hint. Any suggestions ? _grp = creategroup EAST; _veh1 = ( [_RandomTownPosition1, 001, "Offroad_DSHKM_INS", east] call bis_fnc_spawnvehicle ) select 0; _veh2 = ( [_veh1 modelToWorld [0,10,0], 001, "SUV_TK_EP1", east] call bis_fnc_spawnvehicle ) select 0; ////move vip2 on map into SUV////// vip2 moveInCargo _veh2; vip2 assignAsCargo _veh2; _veh3 = ( [_veh2 modelToWorld [0,10,0], 001, "Offroad_DSHKM_INS", east] call bis_fnc_spawnvehicle ) select 0; _veh4 = ( [_veh3 modelToWorld [0,10,0], 001, "Offroad_DSHKM_INS", east] call bis_fnc_spawnvehicle ) select 0; (units _veh1 + units _veh2 + units _veh3 + units _veh4) joinSilent _grp; ////add waypoints _wp1 = _grp addWaypoint [_RandomTownPosition2, 1]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointSpeed "FULL"; _wp1 setbehaviour "CARELESS"; waitUntil {(!(alive _veh1) or !(alive _veh2) or !(alive _veh3) or !(alive _veh4))}; ///Also does not work //_Array = units _grp; //waitUntil{!({alive _x}foreach _Array)}; HINT "BLOOOOMMMM"; -
How to check if Group is all dead and also 1st man in group is killed
1para{god-father} posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I am trying to work out how to check for 2 things .... 1) if the whole group is dead , 2) when 1 member of the group is dead Is this correct to check for the Whole group being killed ? _grppatrol = [getPos testtimer, EAST, (configFile >> "CfgGroups" >> "EAST" >> "INS" >> "Infantry" >> "INS_InfSquad")] call BIS_fnc_spawnGroup; waitUntil{(!alive _grppatrol)} How would I check for the first kill in the group by Blue for? Is there a way as I would like to activate something once the first man is killed -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
Great idea ill add that in for now untill v6 :) Cheers -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
Is there a way to stop spawning reinforcements in Red zones when Bluefore are there as we was in a red zone and they spawned in Apart from that Great mission love it !!! TOP MAN ! -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
Cool looking forward to v6 for sure keep the great work up ! -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
Cheers ill give all that all a try first. Made no changes apart form that line. The server is running ACE & ACRE etc.. So it could be that, so ill test without that on as well, it must be something on our Dedi as like you said it is running on yours and other’s with no issue so ill strip it back and test, did not see the Test slot - that will help ! :) I’ll let you know how I get on. ---------- Post added at 01:48 PM ---------- Previous post was at 01:20 PM ---------- OK GOOD NEW :) Removed all the MODS from the dedi and tested - they spawn in in Red zones , so it must be a issue with one of our Mods we was running. When i have time ill load 1 up at a time and work out what one and PM you just so you are aware ! Sorry CMR - typed to quick ! should be CIM - http://www.armaholic.com/page.php?id=15664 MSO uses it without Addons. -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
OK no idea, restarted Dedi BOX . - yes latest version. When i test it on hosting myself I get a few OPFOR in the RED zones as expected, just after the start of the mission i.e they spawn into Redzones and work there way to green looking at the tracker, but load the mission onto our DEDI box and i only get a few OPFOR spawn in @ the Airbase at top. no spawns at Red Zones. I also just tested it running my own dedi from my PC and I get the same results ? I placed a player globalchat "spawn OPFOR "; in the OpforStart.sqf just under the if (isServer) then just to make sure they was spawning and i never get the message ? - but i do when i host myself - so it is like that code does not run on our Dedi Box ? If i change the isServer to (TRUE) just to test they all spawn in on Red zones on the Dedi box. Used this to trackle OPFOR - ini.sqf - execvm "track_units.sqf"; just to track them to make sure. track_units.sqf /* Simple tracking of foot units. */ DMZ_TU_marker_num = 0; DMZ_TU_marker_arr = []; _marker_fnc = { _unit = _this; DMZ_TU_marker_num = DMZ_TU_marker_num + 1; _name = format["marker_%1",DMZ_TU_marker_num]; _marker = createMarker[_name,(getPos _unit)]; _marker setMarkerShape "ICON"; _marker setMarkerType "Dot"; _color = switch (side (group _this)) do { case west: {"ColorBlue"}; case east: {"ColorRed"}; case civilian: {"Colorgreen"}; }; _marker setMarkerColor _color; _null = [_unit,_marker] spawn { _unit = _this select 0; _mar = _this select 1; while {alive _unit} do { _mar setMarkerPos (getPos _unit); sleep 1; }; _mar setMarkerColor "ColorBlack"; if (isNull _unit) then {} else {sleep 60}; deleteMarker _mar; DMZ_TU_marker_arr = DMZ_TU_marker_arr - [_unit]; }; true }; sleep 1; while {true} do { { if (alive _x AND !(side _x in [civilian,resistance]) AND !(_x in DMZ_TU_marker_arr)) then { DMZ_TU_marker_arr = DMZ_TU_marker_arr + [_x]; _ret = _x call _marker_fnc; }; } foreach allUnits; sleep 5; Sorry just really would like this mission on our server as it is a great mission, so again well done hats off to a unique mission! , and I am hopeing can help :) How about adding in CRM as well as the MSO have that and no mod needed , not sure on the performance hit . -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
Hmmmm no not hit limit in groups as I am talking about the start, waited 5 min got some spawn @ Airbase at top that was all Ill restart the Dedi Box just in case as no one else reported any issues, as like i said i tested it on my PC as host and all worked great ! BTW love the mission concept ! keep the great work up -
Mp -[Fockers] Most Wanted co-op
1para{god-father} replied to mikie boy's topic in ARMA 2 & OA - USER MISSIONS
This might be me , but host it myself works like a dream pop it on my Dedi serer and the towns do not generate any OPFOR ? I put a tracker on OPFOR and they do not spawn at Red zones ? Has this been tested on Dedi server ? -
Patrol and capture markers [SCRIPT]
1para{god-father} replied to demonized's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Now that would be a great Idea ! not seen Demonized on for a long time but i am sure someone will be able to change it ? -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Nice one thanks all works at last ! thanks to all ! -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
OK all seems to work now they move off to there WP but this bit does not seems to work as i go not get the hint waitUntil{({!alive _x} count [_veh1,_veh2,_veh3,_veh4]) != 0}; I need to detect when one of the Vehicles have been destroyed Thanks _grp = creategroup EAST; _veh1 = ( [_RandomTownPosition1, 001, "Offroad_DSHKM_INS", east] call bis_fnc_spawnvehicle ) select 0; _veh2 = ( [_veh1 modelToWorld [0,10,0], 001, "SUV_TK_EP1", east] call bis_fnc_spawnvehicle ) select 0; ////move vip2 on map into SUV////// vip2 moveInCargo _veh2; vip2 assignAsCargo _veh2; _veh3 = ( [_veh2 modelToWorld [0,10,0], 001, "Offroad_DSHKM_INS", east] call bis_fnc_spawnvehicle ) select 0; _veh4 = ( [_veh3 modelToWorld [0,10,0], 001, "Offroad_DSHKM_INS", east] call bis_fnc_spawnvehicle ) select 0; (units _veh1 + units _veh2 + units _veh3 + units _veh4) joinSilent _grp; ////add waypoints _wp1 = _grp addWaypoint [_RandomTownPosition2, 1]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointSpeed "FULL"; _wp1 setbehaviour "CARELESS"; waitUntil{({!alive _x} count [_veh1,_veh2,_veh3,_veh4]) != 0}; Hint "Boom"; -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
@ Panther44 ... Me to but just cannot seem to get it to work , had the Guy getting in the car as per previous post but then had other issues as above ! OK getting there slowly... VIP in car, spawn vehicle all in a row mow as well but they just stay there they do not move to waypoint ? so am I not creating the group , i thought " _group = group _grp;" creates the group ? getting this in .rpt Error in expression <spawnvehicle ) select 0; _group = group _grp; _veh2 = ( [_veh1 modelToWorld [0,1> Error position: <_grp; _veh2 = ( [_veh1 modelToWorld [0,1> Error Undefined variable in expression: _grp -
addEventHandler to create Marker and name
1para{god-father} posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Need some more help please ! I am adding this to the ALICE module to try and capture who killed the civilian. and then in the script create a marker with the Player name how can I get the Players name i.e "MyGameNameisblar blar" not the units name i.e "s1" , and then how do i pass the possition to teh script. Never used EH before so very lost , hope some of the below is correct !? _ALICE setVariable ["ALICE_civilianinit",[{ _this addEventHandler ["Killed",{ if(side (_this select 1) == West || isNull (_this select 1)) then{ [_this select 1]execVM "civilians\civdeath.sqf"; }; }]; }]]; civilians\civdeath.sqf //// how do I get the position of the Killed Civilian and the players Name//// ///// players name//// _pid =_this select 1; _t = format["Civillian Killed by %1",_pid]; ////ID _cid = floor(random 10000); _id = format["Civillian %1",_cid]; [_id, ??location??, "Icon", [1,1], "TEXT:", _t, "TYPE:", "Dot", "COLOR:", "ColorRed", "GLOBAL", "PERSIST"] call CBA_fnc_createMarker; -
addEventHandler to create Marker and name
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
:j: errr yes it does i missed the "name" bit out ooppps All 100% working Many Many thanks for your time !!!!!! -
addEventHandler to create Marker and name
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Cool thanks got it working well chuffed ! My next question is , is there any way I can get the players real name and not the name I gave to the Unit i.e "s1" I wouls like there gamers name? is that possible ? I know i can use the below to get theer name but not sure how i tie that into who killed the civi ? name player; -
addEventHandler to create Marker and name
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Still the same, I think it is not passing anything as when I just place a simple marker down using players position I get the Killers name is <Null> So for some reason it is not passing anything to the kill script from the EH ? -
Grouping and Waypoints
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Still no Joy. They spawn in find, but spawn on top of each other that is never good, any way to solve that ? Then VIP2 does not enter the vehicle and they just site there and do not move to there wp. All i am trying to do is spawn a small convoy in that go from point a to be with a VIP in cargo that we need to extract. _veh1 = [_convoystart, 001, "Ural_INS", east] call bis_fnc_spawnvehicle; _group = group _grp; _veh2 = [_convoystart, 001, "SUV_TK_EP1", east] call bis_fnc_spawnvehicle; ////move vip2 on map into SUV////// vip2 moveInCargo _veh2; vip2 moveInCargo _veh2; _veh3 = [_convoystart, 001, "Ural_INS", east] call bis_fnc_spawnvehicle; _veh4 = [_convoystart, 001, "Ural_INS", east] call bis_fnc_spawnvehicle; (units _veh1 + units _veh2 + units _veh3 + units _veh4) joinSilent _grp; ////add waypoints _wp1 = _grp addWaypoint [_convoyend, 1]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointSpeed "FULL"; _wp1 setbehaviour 'CARELESS'; waitUntil{({!alive _x} count [_veh1,_veh2,_veh3,_veh4]) != 0}; -
addEventHandler to create Marker and name
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I am having an issue with this i get a message as follows:- <createMarkerLocal [_marker, getPos _civ];> Error 0 elements provided, 3 expected so i am presuming it is not passing anything to this script ? -
addEventHandler to create Marker and name
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Many thanks, -
Count number of players at a location and distance
1para{god-father} replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Sticking with this code as it works a treat , happy chappy that should make the base a little more fun !