_area = 150 (希望炸弹随机落下的区域范围150米)
_height = 100 (希望炸弹落下的高度随机0--100米间)
_target = "ABC" (在地图上用取名ABC的GAMELOGIC设一点,炸弹会以它为中心四处随机爆炸)
_ord = "heat73" ( 炸弹的种类;当然还有很多种了)
_need = 70 (希望有70个炸弹落下后程序结实)
_countb = 0 (计数器置0)
_where = getmarkerpos _target (取得ABC点的坐标,X,Y,Z)
#loop _bomb = _ord camcreate [(_where select 0) - random _area + random _area, (_where select 1) - random _area + random _area, (_where select 2) + random _height]
~random 5
_bomb = _ord camcreate [(_where select 0) - random _area + random _area, (_where select 1) - random _area + random _area, (_where select 2) + random _height]
_countb = _countb +2
~random 7 ?
_countb < _need : goto "loop" (如计数器小于70就跳上去再循环)
exit
===============
这是SQS脚本,作者说用maker来调用,但是我之前只用过trigger和gamelogic
maker里只有一个txt框,怎么调用呢? |