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

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
查看: 2710|回复: 4

请问脚本高手 火炮支援如何写?

[复制链接]
头像被屏蔽
发表于 2007-9-1 19:03:47 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2007-9-5 21:01:59 | 显示全部楼层
下面是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
发表于 2012-12-7 10:30:16 | 显示全部楼层
不知道在哪写
发表于 2013-8-29 10:37:52 | 显示全部楼层
这个很好
发表于 2013-9-3 18:58:20 | 显示全部楼层
怎么用
您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-4-25 22:57

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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