| 04-07-2007, 03:01 PM | #1 |
First i will post the JASS: JASS:function Trig_Jump_Conditions takes nothing returns boolean if ( not ( GetSpellAbilityId() == 'A000' ) ) then return false endif return true endfunction function Trig_Jump_Actions takes nothing returns nothing local integer p local integer ps local unit P = GetTriggerUnit() call IssueImmediateOrderBJ( P, "stop" ) //THE UNIT WONT STOP! set p = PM_particleFromUnit(P) set ps = physic_create(p) call PSM_setAcseleration(ps,0,0, EPSF_vps(GetRandomReal(-105,-150),udg_PeriodeT) ) call PSM_setSpeed(ps, 0,0,EPSF_vps(2000,udg_PeriodeT)) call PSM_setFunction(ps,"EPSF_jump") call PauseUnit(P,true) set P = null endfunction //=========================================================================== function InitTrig_Jump takes nothing returns nothing set gg_trg_Jump = CreateTrigger( ) call TriggerRegisterUnitEvent( gg_trg_Jump, gg_unit_nftb_0004, EVENT_UNIT_SPELL_CAST ) call TriggerAddCondition( gg_trg_Jump, Condition( function Trig_Jump_Conditions ) ) call TriggerAddAction( gg_trg_Jump, function Trig_Jump_Actions ) endfunction |
| 04-07-2007, 03:08 PM | #2 |
try to change the event or do wait after locals Or pause/unpause the caster |
| 04-07-2007, 03:09 PM | #3 |
hm maybe but i dont see why to change the events... cus the other actions do work, and the stop do work too, and pause. If i dont order it to stop it will redo spell after its unpaused. but stop order doesnt make it not to cast ability |
