S4mmy
19.02.2009, 20:04
Hey,
ich bin wieder zurück!!!:D
Wünsche allen erstmal ein frohes neues Jahr und alles Gute!
Und nun zu meinem Problem:
Ich arbeite derzeit an einem eigenen Medevac-Taxi...
bei diesem "System" soll es weniger darum gehen,dass das Team abgeholt wird sondern nur vor Ort verartztet wird.^^ Klingt komisch ist aber so!
Das erste Script funktioniert "wunderbar" (da ich kein Script Profi bin probiere ich einfach..). Beim 2ten Script stürzt mein ArmA dann ab... warum auch immer.. >.<
Ich werde es mal posten vielleicht könnt ihr mir ja helfen!
Bedanke mich schonmal
Gruß S4mmy
1. Script
private ["_mh","_bs","_p","_mhl"];
_mh = medicheli1;
_bs = begleits1;
_p = tl;
_mhl = medevach;
_mhl setpos getpos _p;
_mh setspeedMode "Normal";
_mh flyInHeight 50;
_mh domove getpos _mhl;
_mh setbehaviour "Careless";
_bs setspeedMode "FULL";
_bs flyInHeight 50;
_bs domove getpos _mhl;
_bs setbehaviour "Combat";
@speed _mh > 10;
[West,"Hq"] sideChat "Medevac is on the Way! Over!";
@_mh distance _mhl < 700;
_mh setspeedMode "Limited"
@_mh distance _mhl < 300;
[_bs]join group _mh;
_mh setFormation "LINE";
_mh flyInHeight 30;
~10
_mh limitSpeed 1;
_mh forcespeed 1;
~5
rope2 = [_mh, 40, "hawk_1l", "rapel", Medesquad] execVM "\ht\rope.sqf";
@count crew _mh < 4;
~10
_mh flyInHeight 50;
_mh domove getpos holdpos1;
_mh setspeedMode "Normal";
~5
[_bs] join grpnull;
_bs setspeedMode "Full";
_bs domove getpos holdpos2;
@_mh distance holdpos1 < 600;
_genAct = _p addaction ["Sanitäter abholbereit","scripts\medicback"];
@_mh distance holdpos1 > 600;
_p removeAction _genAct;
exit
2. Script
private ["_mh","_bs","_p","_mhl","_mhcrew"];
_mh = medicheli1;
_bs = begleits1;
_p = tl;
_mhl = medevach;
_mhcrew = Medesquad;
[_bs]join group _mh;
_mh setFormation "LINE";
_mh domove getpos _mhl;
_mh setspeedMode "Normal";
@_mh distance _mhl < 700;
_mh setspeedMode "Limited";
_mh flyInHeight 20;
~5
_mh flyInHeight 10;
_mh limitSpeed 1;
_mh forcespeed 1;
~5
_mh flyInHeight 5;
~2
_mh flyInHeight 1;
~1
_mhcrew domove getpos _mh;
@_mhcrew distance _mh < 5;
{_x moveincargo _mh} foreach units _mhcrew
~4
_mh setspeedMode "Normal";
_mh flyInHeight 5;
_mh domove getpos evach;
~3
_mh flyInHeight 10;
~5
_mh flyInHeight 50;
@_mh distance _mhl > 400;
[_bs] join grpnull;
~1
_bs setbehaviour "Careless";
_bs setspeedMode "Normal";
_bs flyInHeight 50;
_bs domove getpos path;
@_bs distance path < 200;
_bs setspeedMode "limited";
_bs domove "GET OUT";
@_mh distance evach < 200;
_mh setspeedMode "limited";
_mh domove "GET OUT";
exit
ich bin wieder zurück!!!:D
Wünsche allen erstmal ein frohes neues Jahr und alles Gute!
Und nun zu meinem Problem:
Ich arbeite derzeit an einem eigenen Medevac-Taxi...
bei diesem "System" soll es weniger darum gehen,dass das Team abgeholt wird sondern nur vor Ort verartztet wird.^^ Klingt komisch ist aber so!
Das erste Script funktioniert "wunderbar" (da ich kein Script Profi bin probiere ich einfach..). Beim 2ten Script stürzt mein ArmA dann ab... warum auch immer.. >.<
Ich werde es mal posten vielleicht könnt ihr mir ja helfen!
Bedanke mich schonmal
Gruß S4mmy
1. Script
private ["_mh","_bs","_p","_mhl"];
_mh = medicheli1;
_bs = begleits1;
_p = tl;
_mhl = medevach;
_mhl setpos getpos _p;
_mh setspeedMode "Normal";
_mh flyInHeight 50;
_mh domove getpos _mhl;
_mh setbehaviour "Careless";
_bs setspeedMode "FULL";
_bs flyInHeight 50;
_bs domove getpos _mhl;
_bs setbehaviour "Combat";
@speed _mh > 10;
[West,"Hq"] sideChat "Medevac is on the Way! Over!";
@_mh distance _mhl < 700;
_mh setspeedMode "Limited"
@_mh distance _mhl < 300;
[_bs]join group _mh;
_mh setFormation "LINE";
_mh flyInHeight 30;
~10
_mh limitSpeed 1;
_mh forcespeed 1;
~5
rope2 = [_mh, 40, "hawk_1l", "rapel", Medesquad] execVM "\ht\rope.sqf";
@count crew _mh < 4;
~10
_mh flyInHeight 50;
_mh domove getpos holdpos1;
_mh setspeedMode "Normal";
~5
[_bs] join grpnull;
_bs setspeedMode "Full";
_bs domove getpos holdpos2;
@_mh distance holdpos1 < 600;
_genAct = _p addaction ["Sanitäter abholbereit","scripts\medicback"];
@_mh distance holdpos1 > 600;
_p removeAction _genAct;
exit
2. Script
private ["_mh","_bs","_p","_mhl","_mhcrew"];
_mh = medicheli1;
_bs = begleits1;
_p = tl;
_mhl = medevach;
_mhcrew = Medesquad;
[_bs]join group _mh;
_mh setFormation "LINE";
_mh domove getpos _mhl;
_mh setspeedMode "Normal";
@_mh distance _mhl < 700;
_mh setspeedMode "Limited";
_mh flyInHeight 20;
~5
_mh flyInHeight 10;
_mh limitSpeed 1;
_mh forcespeed 1;
~5
_mh flyInHeight 5;
~2
_mh flyInHeight 1;
~1
_mhcrew domove getpos _mh;
@_mhcrew distance _mh < 5;
{_x moveincargo _mh} foreach units _mhcrew
~4
_mh setspeedMode "Normal";
_mh flyInHeight 5;
_mh domove getpos evach;
~3
_mh flyInHeight 10;
~5
_mh flyInHeight 50;
@_mh distance _mhl > 400;
[_bs] join grpnull;
~1
_bs setbehaviour "Careless";
_bs setspeedMode "Normal";
_bs flyInHeight 50;
_bs domove getpos path;
@_bs distance path < 200;
_bs setspeedMode "limited";
_bs domove "GET OUT";
@_mh distance evach < 200;
_mh setspeedMode "limited";
_mh domove "GET OUT";
exit