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

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
123
返回列表 发新帖
楼主: bym101

[原创] 求几个脚本,谢谢

[复制链接]
 楼主| 发表于 2010-11-15 09:51:34 | 显示全部楼层
private ["_x","_y","_follower"]
_follower=_this select 0
_x=random 10
_y=random 10
#loop
if (alive player) then {_follower move [(getpos player select 0)+_x,(getpos player select 1)+_y,(getpos player select 2)]} else {dostop _follower}
~3
goto "loop"
这个脚本单人模式下是非常好用的。
能否把PLAYER改一改,变成队长循环或者小队全体呢?
发表于 2010-11-16 15:12:25 | 显示全部楼层
本帖最后由 FFUR2007SLX2_5 于 2010-11-16 22:38 编辑
bym101 发表于 2010-11-15 09:51
private ["_x","_y","_follower"]
_follower=_this select 0
_x=random 10


//follow.sqs
_x=[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10]
_y=[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10]
_xs=round (random 20)
_ys=round (random 20)
_fxs=_x select _xs
_fys=_y select _ys
_follower=_this select 0
_BeingFollowed=_this select 1
?(isServer):goto "Start"
#Start
_follower move [(getpos _BeingFollowed select 0)+_fxs,(getpos _BeingFollowed select 1)+_fys,getpos _BeingFollowed select 2]
~1
goto "Start"


这个是用于多人联机时AI跟人或AI跟AI的脚本。
使用方法,将脚本复制到任务中去。进入编辑器任意找两个人,第一个人名为BeingFollowed(被随者),第二个名为follower(尾随者),[follower,BeingFollowed] exec "follow.sqs"

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入VME

x
发表于 2010-11-16 15:34:58 | 显示全部楼层
本帖最后由 FFUR2007SLX2_5 于 2010-11-17 13:52 编辑
bym101 发表于 2010-11-15 09:51
private ["_x","_y","_follower"]
_follower=_this select 0
_x=random 10


//follow2.sqs
_x=[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10]
_y=[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10]
_xs=round (random 20)
_ys=round (random 20)
_fxs=_x select _xs
_fys=_y select _ys
_follower=_this select 0
_BeingFollowed=_this select 1
_BFGroup=group _BeingFollowed
_num=count units _BFGroup
if (_num>1) then {goto "Check"} else {goto "Exit"}
#Check
?(isServer):goto "Start"
#Start
_follower move [(getpos leader _BFGroup select 0)+_fxs,(getpos Leader _BFGroup select 1)+_fys,getpos leader _BFGroup select 2]
~1
goto "Start"
#Exit
exit
这是单个AI跟随组队的脚本,使用方法同上,只不过被跟随者为小队队长的名字。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入VME

x
 楼主| 发表于 2010-11-17 11:29:32 | 显示全部楼层
昨天太累了,没玩,今晚回家试试,谢谢啦
 楼主| 发表于 2010-11-19 17:25:52 | 显示全部楼层
顶起来。。。。。
发表于 2010-11-19 17:28:08 | 显示全部楼层
bym101 发表于 2010-11-19 17:25
顶起来。。。。。

对了,你提的另外两个脚本问题我怎么找不到了?
 楼主| 发表于 2010-11-19 18:04:25 | 显示全部楼层
回复 FFUR2007SLX2_5 的帖子

A10俯冲用70毫米火箭覆盖某地区?
另一个我也想不起来鸟
发表于 2013-1-1 13:59:08 | 显示全部楼层
..
好东西
发表于 2013-1-1 17:27:59 | 显示全部楼层
各位高人讨论的东东,我一个都看不懂啊;再问个问题,我从官网上下的任务插件拷到游戏的missons文件夹里怎么都玩不成呢,我装的是援军合集的中文加强版
发表于 2013-3-26 14:14:28 | 显示全部楼层
试一试,学习
您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-5-1 21:48

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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