找回密码
 点一下
查看: 1687|回复: 0

一个诡异的错误

[复制链接]
发表于 2007-12-15 12:19:37 | 显示全部楼层 |阅读模式
function M_3D_act takes nothing returns nothing
    local unit u1 = GetEnumUnit()
    local location a1 = GetUnitLoc(u1)
    local location b1 = udg_L_Master3D
    local real x1 = DistanceBetweenPoints( b1 , a1 )
    local real x2 = AngleBetweenPoints ( a1 , b1 )
    local location c1 = PolarProjectionBJ( a1 , x1 - 18, x2 )
    call SetUnitPositionLocFacingBJ( u1, c1, x2 )
    call CreateNUnitsAtLoc( 1, 'uabo', Player(11), GetUnitLoc(u1), bj_UNIT_FACING )
    call RemoveLocation( a1 )
    call RemoveLocation( b1 )
    call RemoveLocation( c1 )
    set a1 = null
    set b1 = null
    set c1 = null
    set u1 = null
endfunction

调用后可能导致崩溃
您需要登录后才可以回帖 登录 | 点一下

本版积分规则

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

GMT+8, 2024-11-22 03:44 , Processed in 0.087835 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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