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

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
查看: 3515|回复: 7

求助:关于AA的《Mr.Murray的编辑指南正式版》中的空袭脚本问题

[复制链接]
发表于 2009-10-11 22:55:02 | 显示全部楼层 |阅读模式
我照着他的空袭脚本抄下来试了一下,
结果发现飞机只是飞过,但就是不丢炸弹.......
但文本却也不报错......
发表于 2009-10-12 13:25:27 | 显示全部楼层
:loveliness:不好意思想帮你,帮不了了,脚本只找到AA2的,AA不知放到那里了?好久没玩AA了。(国外网站上有找找看,我找到了再发给你)
 楼主| 发表于 2009-10-11 22:55:25 | 显示全部楼层
setfire=true;
titleText ["Click on the map to set your firedirection","plain down"];
onMapSingleClick "ASTarget setPos _pos;setfire=false";

@!setfire;
"firedirection" setMarkerPos getPos ASTarget;
playSound "Firedirection";
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 WEST;
_plane=createVehicle ["AV8B",_planespawnpos,[],0,"FLY"];
_plane setpos [(getPos _plane select 0),(getPos _plane select 1),900];
_pilot="SoldierWPilot" 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";

#CHCK
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
 楼主| 发表于 2009-10-11 23:01:25 | 显示全部楼层
上面是我抄的内容,希望各位高手看看到底是哪里出了问题......
还是哪里抄错了.......
谢谢啦~:)
发表于 2009-10-12 00:17:16 | 显示全部楼层
检查起来挺累的,今天太晚了,明天给你两个脚本,一个A10的,一个AV8B的。
 楼主| 发表于 2009-10-12 12:41:22 | 显示全部楼层
非常谢谢啊!
 楼主| 发表于 2009-10-12 22:43:33 | 显示全部楼层
这问题我已经自己解决了,不过还是谢谢各位了。
下面是正确的(只是少个声音文件,但完全不影响运行):


setfire=true;
titleText ["Click on the map to set your firedirection","plain down"];
onMapSingleClick "ASTarget setPos _pos;setfire=false";

@!setfire;
"firedirection" setMarkerPos getPos ASTarget;
playSound "Firedirection";
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 WEST;
_plane=createVehicle ["AV8B",_planespawnpos,[],0,"FLY"];
_plane setpos [(getPos _plane select 0),(getPos _plane select 1),900];
_pilot="SoldierWPilot" 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
您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-5-15 11:01

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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