level 10
玩家附近周围800米以内不管是己方还是敌方及 平民人员都一律跑向玩家,这脚本该如何写?
2021年04月30日 11点04分
1
level 9
{if(_x distance player < 500)then{_x move getpos player}}forEach allunits
2021年05月05日 15点05分
8
【还有如何让载具或人员在打光了主武器就换副武器,以此类推,直至身上没有任何一样武器,连手雷烟雾都打光了,比如阿帕奇在打完了几种导弹后就改用火箭巢,再然后就机炮,最后就是干扰波条,像这样的语句如何写?】
2021年05月07日 00点05分
@不离不弃这闪点 这个就有点 BT了。按思路要检测没一种武器弹药剩余,不够了就脚本强制换到下一个武器,重复操作
2021年05月07日 07点05分
@不离不弃这闪点 太麻烦了 不是刚需 也没时间研究了
2021年05月07日 08点05分
level 10
【【// 攻击while {_vehicle ammo _weapon > 0} do { if (local _vehicle) then { _vehicle selectWeapon _weapon; sleep 0.1; [_vehicle, _weapon] call BIS_fnc_fire; }; };// 拉高sleep 3;_vehicle flyInHeight nowHeight;// 如果有干扰弹 扔干扰弹if ((weapons _vehicle) find "CMFlareLauncher" >= 0) then {for "_i" from 0 to 10 do {sleep 0.5;[_vehicle, "CMFlareLauncher"] call BIS_fnc_fire;};};】这思路好像不凑效
2021年05月07日 07点05分
9
level 10
params["_vehicle","_pWeap","_secondaryWeapon"];
_pWeap = primaryWeapon _vehicle;
_secondaryWeapon = secondaryWeapon _vehicle;
hint primaryWeapon player;
while {_vehicle ammo _pWeap > 0} do {
if (local _vehicle) then {
_vehicle selectWeapon _pWeap;
sleep 0.1;
[_vehicle, _pWeap] call BIS_fnc_fire;
};
};
sleep 3;
if(_vehicle ammo _pweap<0)then{
_vehicle selectWeapon _secondaryWeapon;
sleep 0.1;
[_vehicle, _secondaryWeapon] call BIS_fnc_fire;
};这样的思路试了也没凑效,不知是不是哪里的变量没定义好
2021年05月07日 08点05分
10