Desert_Claw
The Savior
offline
Опыт:
529Активность: |
Отсутствует название в функции
Отсутствует название в функции!!! - у меня выходит эта натпись и тригер блокируется! что делать?
call UnitDamageTargetBJ( udg_Caster, udg_Target, 250.00, ATTACK_TYPE_MELEE, DAMAGE_TYPE_POISON ) |
13.10.2008, 16:28 | #1
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
J
expert
offline
Опыт:
48,447Активность: |
необезательно ошибка именно сдесь, приведи всю функцию целиком |
13.10.2008, 16:37 | #2
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
Desert_Claw
The Savior
offline
Опыт:
529Активность: |
Вот
function Trig_Chidori_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then return false endif return true endfunction function Trig_Chidori_Actions takes nothing returns nothing
call CreateDestructableLoc( 'B000', PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()), 500.00, ( I2R(GetForLoopIndexA()) * 6.00 )), GetRandomDirectionDeg(), GetRandomReal(1.00, 2.00), GetRandomInt(1, 10) ) set udg_Caster = GetTriggerUnit() set udg_Target = GetSpellTargetUnit() call PauseUnitBJ( true, udg_Caster ) call PauseUnitBJ( true, udg_Target ) call SetUnitInvulnerable( udg_Caster, true ) call SetUnitInvulnerable( udg_Target, true ) call SetUnitPathing( udg_Caster, false ) call AddSpecialEffectTargetUnitBJ( "hand right", udg_Caster, "Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl" ) call SetUnitAnimation( udg_Caster, "walk" ) set udg_Orb = GetLastCreatedEffectBJ() call TerrainDeformationWaveBJ( 0.5, GetUnitLoc(udg_Caster), GetUnitLoc(udg_Target), 256, 96, 0 ) call EnableTrigger( gg_trg_MoveCaster ) call TriggerSleepAction( ( DistanceBetweenPoints(GetUnitLoc(udg_Caster), GetUnitLoc(udg_Target)) / 800.00 ) ) call DisableTrigger( gg_trg_MoveCaster ) call PauseUnitBJ( false, udg_Caster ) call PauseUnitBJ( false, udg_Target ) call SetUnitInvulnerable( udg_Caster, false ) call SetUnitInvulnerable( udg_Target, false ) call SetUnitAnimation( udg_Caster, "spell throw" ) call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" ) call UnitDamageTargetBJ( udg_Caster, udg_Target, 250.00, ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL ) call DestroyEffectBJ( udg_Orb ) call SetUnitPathing( udg_Caster, true ) endfunction =========================================================================== function InitTrig_Chidori takes nothing returns nothing set gg_trg_Chidori = CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ( gg_trg_Chidori, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition( gg_trg_Chidori, Condition( function Trig_Chidori_Conditions ) ) call TriggerAddAction( gg_trg_Chidori, function Trig_Chidori_Actions ) endfunction |
13.10.2008, 18:03 | #3
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
user_jasser
offline
Опыт:
232Активность: |
код вроде без ошибки, толко вот бред какой-то написан.... Отредактировано user_jasser, 13.10.2008 в 18:30. |
13.10.2008, 18:16 | #4
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
Лось
offline
Опыт:
7,223Активность: |
Мб какая нибудь глобалка не объявлена? |
13.10.2008, 18:35 | #5
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|