|
[jass]function Trig_First_Actions takes nothing returns nothing
local unit u = GetKillingUnit()
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundOnUnitBJ(gg_snd_firstblood,100.,u)
if (GetLocalPlayer() == GetOwningPlayer(u)) then
call AddSpecialEffectTarget("UI\\Feedback\\GoldCredit\\GoldCredit.mdl",u,"overhead")//如果加上这句就会出现掉线!!!!!!!
call CreateTextTagUnitBJ( "+150", u, 0, 10, 100, 100, 0.00, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 64, 90 )
call SetTextTagPermanent( GetLastCreatedTextTag(), false )
call SetTextTagFadepoint( GetLastCreatedTextTag(), 2.00 )
call SetTextTagLifespan( GetLastCreatedTextTag(), 4.00 )
endif
call DisplayTextToForce( GetPlayersAll(), GetPlayerName(GetOwningPlayer(u))+"刚刚获得了第一滴血,得到150金的奖励!" )
endfunction[/jass]
不是给部分玩家创建特效是不会掉线的么? |
|