中国虚拟军事网(VME)- 专注于武装突袭系列虚拟军事游戏

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
查看: 1742|回复: 2

[求助] 空袭脚本能改成用其他飞机么?

[复制链接]
发表于 2012-11-4 08:41:23 | 显示全部楼层 |阅读模式
空袭脚本里面飞机的阵营、飞行员都可以改,经测试没有问题。但是飞机只能用AV8B,我把飞机改成Q5、JH7BOMB都不行,改成自带的su系列飞机也不行
不知各位大大们有没有办法……
空袭脚本如下:
setfire=true;
titleText ["Click on the map to set your firedirection","plain down"];
onMapSingleClick "ASTarget setPos _pos;setfire=false";

@!setfire;
"firedirection" setMarkerPos getPos ASTarget;
onMapSingleClick "";
titleText ["","plain down"];
;===DEFINE===
_dropPosition=getPos ASTarget;
~5
_dropPosX= _dropPosition select 0;
_dropPosY= _dropPosition select 1;
_dropPosZ= _dropPosition select 2;
~0.1
_planespawnpos=[_dropPosX+3000,_dropPosY,_dropPosZ+1000];
_pilotpawnpos=[_dropPosX+3000,_dropPosY,_dropPosZ+1000];
;===CREATE===
_PlaneG=createGroup EAST;
_plane=createVehicle ["AV8B",_planespawnpos,[],0,"FLY"];
_plane setpos [(getPos _plane select 0),(getPos _plane select 1),900];
_pilot="FROMZ_SoldierGPilot" createUnit [getMarkerPos "Firedirection",_PlaneG,"P1=this"];

_plane setVelocity [100,0,0];
~0.4
P1 moveinDriver _plane;
P1 setDamage 0;
P1 action ["gear_up",vehicle P1];
_plane flyinHeight 100;
_plane setSpeedMode "full";

#CHECK
P1 doMove getPos ASTarget;
P1 doTarget ASTarget;
P1 doWatch ASTarget;
?(_plane distance ASTarget)<1500:goto "DROP"
goto "CHECK"
;===FIRE===
#DROP
_i=0
_plane FlyInHeight 100;
_plane setPos [(getPos _plane select 0),(getPos _plane select 1),100];
~13
#FIRE
_i=_i+1
_plane fire "Bomblauncher";
~0.2
?_i<=6:goto "FIRE"
;===FLY AWAY===
ASTarget setpos [0,0,0];
"Fierdirection" setMarkerPos [0,0];
_plane setSpeedMode "Full"
~4
_plane flyinHeight 300;
P1 doMove getPos ASTarget;
#CHECK2
_plane setDamage 0;
P1 setDamage 0;
?(_plane distance Player)>2500:goto "END";
goto "CHECK2"
;===DELETE===
#END
deletevehicle _plane;
deleteGroup _PlaneG
deletevehicle P1;
exit
发表于 2012-11-4 14:39:01 | 显示全部楼层
顶一个
发表于 2012-11-4 14:50:46 | 显示全部楼层
ddddddddddddddddd
您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-3-29 05:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表