找回密码
 点一下
查看: 1103|回复: 3

一个烦恼的问题,估计很多人会碰到吧?

[复制链接]
发表于 2008-8-6 17:23:02 | 显示全部楼层 |阅读模式
我用T做出来的技能,第一次使用的时候会卡一下,每一个技能的都是这样,请问怎么解决?
发表于 2008-8-6 18:40:39 | 显示全部楼层
把你做的 T 给大家看
回复

使用道具 举报

 楼主| 发表于 2008-8-6 19:51:13 | 显示全部楼层
[jass]function Trig_duocong_Actions takes nothing returns nothing
  local unit u
  local location x
  local location xx
  local integer i = 1
  local location xa = GetUnitLoc(GetTriggerUnit())
  set x = GetSpellTargetLoc()
  loop
    set u = CreateUnitAtLoc(GetTriggerPlayer(),'e000',xa , 0.00)
    call UnitAddAbility( u, 'A029' )
    call UnitApplyTimedLife( u , 'Bhwe', 1.00)
    set xx = PolarProjectionBJ(x, 256, ( ( GetUnitFacing(GetTriggerUnit()) - 60.00 ) + ( i * 20.00 ) ))
    call IssuePointOrderLoc( u, "carrionswarm", xx )
  set i = i + 1
  exitwhen i > 5
  endloop
  set x = null
  set xx = null
  set xa = null
  call  RemoveLocation(x)
  call  RemoveLocation(xx)
  call  RemoveLocation(xa)
  set u = null
endfunction
[/jass]
回复

使用道具 举报

发表于 2008-8-6 20:23:36 | 显示全部楼层
引用第2楼laomang11于2008-08-06 19:51发表的  :
[jass]function Trig_duocong_Actions takes nothing returns nothing
  local unit u
  local location x
  local location xx
  local integer i = 1
.......

自定义单位第一次进入地图肯定会卡

解决办法有两个:
1,提前预载自定义单位
2,对地图进行SLK优化
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-7-21 02:36 , Processed in 0.073526 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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