Quote:
Originally Posted by Itemcraft
jo scripte mal eines ^^ das ist nicht so einfach ne box hingegen -> easy going
|
probiere es mal aus ;)
Code:
[private["_nyan, _plr, _case"];
_plr = _this select 0;
//_nyan = 'player enableAI "TARGET"; player disableAI "AUTOTARGET"; player enableAI "MOVE"; player enableAI "ANIM"; player disableAI "FSM";';
//nil = ["", 11 ,_nyan] execVM "wuat\scripts\Dwarden.sqf";
_case = _this select 1;
_class = "";
_pos = getposatl player;
private["_pList", "j", "i", "_pArray", "_dir", "_pos"];
_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];
for "i" from 0 to j do
{
_XvX= _pList select i;
if(format[name _XvX] == _plr) then {
//[_XvX] join group player;
//player remoteControl effectiveCommander _XvX;
//selectPlayer _XvX;
_XvX switchCamera "EXTERNAL";
//player remoteControl _XvX;
waitUntil { !(alive _XvX) or !(alive player) };
//objNull remoteControl effectiveCommander _XvX; // removes the remoteControlling
player switchCamera "INTERNAL"; // returns to the player
//selectPlayer player;
}
};