Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How would I go about adding messages for when the heli is landing and taking off from the different points? I'd like my players to be able to see this so they can try to get ready for the transport.
Hey, would you care to share how you got it working? I have the same problem you had, thanks mate.
I haven't.
Try something likeDoes anyone have any pointers as to how i would add an exclusion to mpeventhandler.txt for this log entry...
Code:#27 "Hit" 3:23 - "[(_this Select 0),(_this Select 1)] ExecVM "units\ChopperReaction.sqf";"
5 "exec" !=\"ExecVM "units\ChopperReaction.sqf\";"
Thanks for the reply. I am getting the same kick mesage and log entry after adding that to my mpeventhandler.txtTry something likeon line #29. Not tested and I normally add the sqf in as a filter but that doesn't work sometimes.. Pretty sure is backslash to escape double quotes as that is what's used in scripts.txt.Code:5 "exec" !=\"ExecVM "units\ChopperReaction.sqf\";"
if ((!isServer) && (isNull player)) then
{
waitUntil {!isNull player};
waitUntil {time > 3};
};
if ((!isServer) && (player != player)) then
{
waitUntil {player == player};
waitUntil {time > 3};
};
if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf";
_nil = [] execVM "mission.sqf";
_nil = [] execVM "busroute\bus_driver.sqf";
_nil = [] execVM "units\init.sqf";
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
Sleep 3;
//create the chopper
PatrolChopper1 = createVehicle ["BAF_Merlin_HC3_D",_unitpos,[], 0, "NONE"];
removeAllWeapons PatrolChopper1; // Tried to remove weapons not working...
removeAllItems PatrolChopper1; // Tried to remove all items not working...
//PatrolChopper1 = createVehicle ["MV22",_unitpos,[], 0, "NONE"];
PatrolChopper1 SetDir 90;
PatrolChopper1 SetPos GetPos PatrolChopper1;
PatrolChopper1 setVariable ["ApprovedVeh", 1 , True];
_aigroup addVehicle PatrolChopper1;
PatrolChopper1 flyInHeight _FlyHeight;
PatrolChopper1 addEventHandler ["handleDamage", { false }];
PatrolChopper1 addEventHandler ["Hit","(_this select 0) SetDammage 0"];
PatrolChopper1 addEventhandler ["dammaged", {(_this select 0) setdamage 0;}];
PatrolChopper1 AddMPEventHandler ["MPHit", {[(_this Select 0),(_this Select 1)] ExecVM "units\ChopperReaction.sqf";}];
PatrolChopper1 AddMPEventHandler ["MPKilled", {[(_this Select 0),(_this Select 1)] ExecVM "units\ChopperReaction.sqf";}];
//Only a Woman could crash a Heli this way...
_aigroup = creategroup civilian;
_helipilot = _aigroup createUnit ["SurvivorW2_DZ",getPos _crashwreck,[],0,"FORM"];
_helipilot moveindriver _crashwreck;
_helipilot assignAsDriver _crashwreck;
for Example something like:
_aigroup = creategroup EAST;
_helipilot = _aigroup createUnit ["SurvivorW2_DZ",getPos _crashwreck,[],0,"FORM"];
_heligunner1 = _aigroup createUnit ["SurvivorW2_DZ",getPos _crashwreck,[],0,"FORM"];
_heligunner2 = _aigroup createUnit ["SurvivorW2_DZ",getPos _crashwreck,[],0,"FORM"];
_helipilot moveindriver _crashwreck;
_helipilot assignAsDriver _crashwreck;
_heligunner1 moveinGunner _crashwreck;
_heligunner1 assignAsGunner _crashwreck;
.
.
.
Just looked through my rpt log and found this.
Code:9:30:32 "ChopperPatrol: Chopper Spawn initiated: Centre: [32.5626,1490.66,0] Soldiers: 8 Flying Height: 50 " 9:30:43 "ChopperPatrol: Creating Chopper Crewman any number 1 at [34.5626,1490.66,0]" 9:30:46 "ChopperPatrol: Creating Event Handlers for any " 9:30:47 "ChopperPatrol: Creating Chopper Crewman any number 2 at [36.5626,1490.66,0]" 9:30:50 "ChopperPatrol: Creating Event Handlers for any " 9:30:51 "ChopperPatrol: Creating Chopper Crewman any number 3 at [38.5626,1490.66,0]" 9:30:54 "ChopperPatrol: Creating Event Handlers for any " 9:30:55 "ChopperPatrol: Creating Chopper Crewman any number 4 at [40.5626,1490.66,0]" 9:30:58 "ChopperPatrol: Creating Event Handlers for any " 9:30:59 "ChopperPatrol: Creating Chopper Crewman any number 5 at [42.5626,1490.66,0]" 9:31:02 "ChopperPatrol: Creating Event Handlers for any " 9:31:03 "ChopperPatrol: Creating Chopper Crewman any number 6 at [44.5626,1490.66,0]" 9:31:06 "ChopperPatrol: Creating Event Handlers for any " 9:31:07 "ChopperPatrol: Creating Chopper Crewman any number 7 at [46.5626,1490.66,0]" 9:31:10 "ChopperPatrol: Creating Event Handlers for any " 9:31:11 "ChopperPatrol: Creating Chopper Crewman any number 8 at [48.5626,1490.66,0]" 9:31:14 "ChopperPatrol: Creating Event Handlers for any " 9:31:15 "ChopperPatrol: Chopper Spawn Completed - beginning waypoints" 9:31:15 "Patrol: 10f210c0# 1055748: mv22.p3d Altitude is 0.318663 meters, DT is 1, AT is 0" 9:31:25 "Patrol: 10f210c0# 1055748: mv22.p3d Altitude is 0.318663 meters, DT is 2, AT is 0" 9:31:35 "Initial WP pos is [0,0,0]" 9:31:35 "Patrol: 10f210c0# 1055748: mv22.p3d Altitude is 0.318663 meters, DT is 3, AT is 0" 9:31:42 Warning: z\addons\dayz_communityassets\models\razor.p3d:0 Error while trying to generate ST for points: 214, 349, 208 9:31:45 "Patrol: 10f210c0# 1055748: mv22.p3d Altitude is 0.318663 meters, DT is 4, AT is 0" 9:31:55 "Patrol: 10f210c0# 1055748: mv22.p3d Altitude is 0.318663 meters, DT is 5, AT is 0" 9:32:06 "Patrol: Detected Living Crew!" 9:32:06 "Patrol: Chopper has been disabled, respawning any"
Is that saying that the chopper has been destroyed? After this it just keep creating choppers west of Kamenka with no AI. What would be causing this?
class group_cleanup
{
name = "group_cleanup";
init = /*%FSM<STATEINIT""">*/"//Clean groups" \n
"{" \n
"//diag_log (""CLEANUP: CHECKING GROUP WITH "" + str(count units _x) + "" UNITS"");" \n
"//if (count units _x==0) then {" \n
"//deleteGroup _x;" \n
"//diag_log (""CLEANUP: DELETING A GROUP"");" \n
"//};" \n
"} forEach allGroups;" \n
""/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;