| 08-04-2004, 06:31 AM | #1 |
mutiple actions? how to run an action, i need help? Code:
if ( Trig_Wallcrawl_Func029C() ) then
set udg_AnotherTime = ( udg_AnotherTime - 1 )
[color=red]call ( ?????? how do I run the Trig_Start_Actions here )[/color]
else
[color=red]call ( ?????? how do I run the Trig_End_Actions here )[/color]
endif
call TriggerSleepAction( 0.15 )
if ( Trig_Wallcrawl_Func031C() ) then
set udg_AnotherTime = ( udg_AnotherTime - 1 )
[color=red]call ( ?????? how do I run the Trig_Start_Actions here )[/color]
else
call DoNothing( )
endif
[color=red]call ( ?????? how do I run the Trig_End_Actions here )[/color]
endfunction
function Trig_End_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetSpellAbilityUnit(), GetUnitLoc(udg_AttackDummy), GetUnitFacing(udg_AttackDummy) )
call RemoveUnit( udg_AttackDummy )
call ShowUnitShow( GetSpellAbilityUnit() )
call SelectUnitAdd( GetSpellAbilityUnit() )
endfunction
function Trig_Start_Func takes nothing returns nothing
set udg_AttackedUnit = GetEnumUnit()
call SetUnitPositionLocFacingLocBJ( udg_AttackDummy, GetUnitLoc(GetEnumUnit()), GetUnitLoc(GetEnumUnit()) )
call SetUnitAnimation( udg_AttackDummy, "attack" )
call PlaySoundAtPointBJ( udg_SliceSound[GetRandomInt(1, 3)], 100, GetUnitLoc(udg_AttackDummy), 0 )
call SetUnitLifeBJ( udg_AttackedUnit, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_AttackedUnit) - udg_Damage ) )
endfunction
function Trig_Start_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(500.00, GetUnitLoc(GetEventTargetUnit())), function Trig_Start_Func )
endfunction |
| 08-04-2004, 07:15 AM | #2 |
Either put the above code below the rest of the code. If that is not possible, use ExecuteFunc("Trig_End_Actions") and ExecuteFunc("Trig_Start_Actions") |
| 08-04-2004, 07:34 AM | #3 |
Thank you so much kattana, ive been waiting all day. |
