下面是DT发的帖:
========================
送一个火炮支援脚本给大家:
;说明
[触发器名称,最大呼叫次数,每次炮击最少间隔时间(秒),炮火覆盖范围(米),连续两发炮弹最小间隔时间(秒),连续两发炮弹最大间隔时间(秒),使用炮弹数量]
exec "脚本名称"
;例如 [traget,3,120,200,0,1,50] exec "huopao.sqs"
_countmark = 0
#userMarker
userMarkerSet = false
@userMarkerSet
#start
_count = 0
_caller = _this select 0
_markmax = _this select 1
_mintime = _this select 2
_spread = _this select 3
_minwait = _this select 4
_maxwait = _this select 5
_num = _this select 6
_caller setpos [userMarkerX,userMarkerY,0]
_droppos = getpos _caller
_dropx = _droppos select 0
_dropy = _droppos select 1
_dropz = 0
#newround
_sx = _dropx + (random _spread) - (_spread / 2)
_sy = _dropy + (random _spread) - (_spread / 2)
~_minwait + (random _maxwait - _minwait)
_round = "LaserGuidedBomb"
_round camCreate [_sx, _sy, 500]
_count = _count + 1
?(_count >= _num): goto "ending"
goto "newround"
#ending
_countmark = _countmark + 1
~_mintime
?(_countmark >= _markmax): goto "markending"
goto "userMarker"
#markending
exit |