找回密码
 立即注册
查看: 1802|回复: 2

漂浮文本函数

[复制链接]
发表于 2007-8-24 19:59:52 | 显示全部楼层 |阅读模式
function FadeTagUnit takes string text,unit whichunit,real red,real green,real blue,real time returns nothing
//text=文本内容 whichunit=漂浮文本单位 red=红染色 green=绿染色 blue=蓝染色 time 漂浮时间
    local texttag t = CreateTextTag()
    call SetTextTagText(t, text, 10*0.023/10 )
    call SetTextTagPosUnit(t, whichunit, 0 )
    call SetTextTagColorBJ(t,red, green, blue,0)
    call SetTextTagVelocityBJ( t, 70.00, 90 )
    call SetTextTagPermanent( t, false )
    call SetTextTagAge( t, 0.00 )
    call SetTextTagFadepoint( t, time/4 )
    call SetTextTagLifespan( t, time )
    set t = null
endfunction
FadeTagText
    事件
        单位 - A unit 开始一种技能的效果
    条件
       //你想要的条件 比如说必须为英雄呀??
    动作
        Custom script:   call FadeTagUnit(GetAbilityName(GetSpellAbilityId()),GetTriggerUnit(),100,0,0,2)
 楼主| 发表于 2007-8-24 20:00:40 | 显示全部楼层
自己先支持一下.....
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|夜天使联盟论坛

GMT+8, 2026-11-19 05:08 , Processed in 0.014719 second(s), 18 queries .

Powered by Discuz! X5.0

© 2005-2025  技术支持 by 夜天使联盟.

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