Jawoll, war noch auf nicht zu Hause
kill_informant.sqf:
Code:
if (isServer) then {
[[(Offizier),"Acts_Executioner_Squat"], "anim_fnc"] call BIS_fnc_MP;
sleep 10.033;
[[(Offizier),"Acts_Executioner_Squat_End"], "anim_fnc"] call BIS_fnc_MP;
sleep 5.468;
[[(Offizier),"Acts_Executioner_Kill"], "anim_fnc"] call BIS_fnc_MP;
sleep 0.65;
[[(informant),"Acts_ExecutionVictim_Kill_End"], "anim_fnc"] call BIS_fnc_MP;
sleep 1.05;
Offizier fire "hgun_Pistol_heavy_02_F";
sleep 2;
Offizier removeWeapon ((weapons Offizier) select 0);
sleep 1.6;
informant setDamage 1;
};
Teste es gerade mit remoteExec:
Code:
if (isServer) then {
//[[(Offizier),"Acts_Executioner_Squat"], "anim_fnc"] call BIS_fnc_MP;
[Offizier, "Acts_Executioner_Squat"] remoteExec ["playMove"];
sleep 10.033;
//[[(Offizier),"Acts_Executioner_Squat_End"], "anim_fnc"] call BIS_fnc_MP;
[Offizier, "Acts_Executioner_Squat_End"] remoteExec ["playMove"];
sleep 6;
//[[(Offizier),"Acts_Executioner_Kill"], "anim_fnc"] call BIS_fnc_MP;
[Offizier, "Acts_Executioner_Kill"] remoteExec ["playMove"];
sleep 0.65;
//[[(informant),"Acts_ExecutionVictim_Kill_End"], "anim_fnc"] call BIS_fnc_MP;
[informant, "Acts_ExecutionVictim_Kill_End"] remoteExec ["playMove"];
sleep 3.05;
Offizier removeWeapon ((weapons Offizier) select 0);
sleep 1.6;
informant setDamage 1;
else {
sleep 17.083;
Offizier fire "hgun_Pistol_heavy_02_F";
};
Geladen wird das Script über einen EH:
init.sqf:
Code:
"b_spotted" addPublicVariableEventHandler {if (b_spotted > 0) then { 0 = []execVM "scripts\mission\kill_informant.sqf"};};