- Joined
- Oct 9, 2008
- Messages
- 112
Hey Guys,
i iam making a Jass Spell or System it always need to be in the Map Header or i cannot call any functions. Anyone have a solution for this problem?
Here are the triggers:
-Atami
Enjoy! :>
For any solution you will get +rep! :>
i iam making a Jass Spell or System it always need to be in the Map Header or i cannot call any functions. Anyone have a solution for this problem?
Here are the triggers:
JASS:
function lightning_storm_height takes nothing returns nothing
local real height = 500.00
local real rate = 100.00
call UnitAddAbilityBJ( 'Arav', udg_LS_Caster )
call SetUnitFlyHeightBJ( udg_LS_Caster, height, rate )
call UnitRemoveAbilityBJ( 'Arav', udg_LS_Caster )
endfunction
function cast_lightning_storm takes nothing returns nothing
local unit caster = udg_LS_Caster
call lightning_storm_height()
endfunction
//===========================================================================
function InitTrig_LSTrigger takes nothing returns nothing
set gg_trg_LSTrigger = CreateTrigger( )
call TriggerAddAction( gg_trg_LSTrigger, function cast_lightning_storm )
call TriggerAddAction( gg_trg_LSTrigger, function lightning_storm_height )
endfunction
-
LSIni
-
Ereignisse
-
Einheit - A unit Starts to cast a spell
-
-
Bedingungen
-
(Ability being cast) Equal Lightning Storm
-
-
Aktionen
-
Set LS_Caster = (Casting unit)
-
Set LS_Damage = 100.00
-
Custom script: call cast_lightning_storm()
-
-
-Atami
Enjoy! :>
For any solution you will get +rep! :>