- Joined
- Mar 10, 2009
- Messages
- 5,016
Hello Hivers!...I'm learning JASS and experimented on local variables...
The trigger below works...but is there something better?...
An expert (forgot his name) said that GUI is limited and cant access all
natives, so my question is this...can you provide an example of native(s) except local that GUI doesnt have?...
The trigger below works...but is there something better?...
JASS:
function Trig_Test_Flying_Height_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ACbl' ) ) then
endif
return true
endfunction
function Trig_Test_Flying_Height_Actions takes nothing returns nothing
local unit target = GetSpellTargetUnit()
call TriggerSleepAction (10)
call SetUnitFlyHeightBJ(target, 0.00, 500 )
endfunction
//===========================================================================
function InitTrig_Test_Flying_Height takes nothing returns nothing
set gg_trg_Test_Flying_Height = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Test_Flying_Height, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Test_Flying_Height, Condition( function Trig_Test_Flying_Height_Conditions ) )
call TriggerAddAction( gg_trg_Test_Flying_Height, function Trig_Test_Flying_Height_Actions )
endfunction
-
Test Kill Unit
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
Custom script: local unit target = GetTriggerUnit()
-
Custom script: local unit caster = GetAttacker()
-
Custom script: call TriggerSleepAction(10)
-
Custom script: call KillUnit(target)
-
Custom script: set target = null
-
-
An expert (forgot his name) said that GUI is limited and cant access all
natives, so my question is this...can you provide an example of native(s) except local that GUI doesnt have?...
Last edited: