- Joined
- Jul 17, 2006
- Messages
- 145
:< i cant get this JASS trigger to work, but iv looked over it over and over, and i dont understand why it wont work.
It passes syntax checks fine and i can run the game with it, but when I use the ability 'A054' it dosent do what its supposed to (shoot a line of frost in front of a unit)
why this wont work dosent make ANY sence, so any help is appreciated
It passes syntax checks fine and i can run the game with it, but when I use the ability 'A054' it dosent do what its supposed to (shoot a line of frost in front of a unit)
why this wont work dosent make ANY sence, so any help is appreciated
JASS:
function Trig_Captian_Hapos_Freezer_Cannon_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A04S'
endfunction
function Trig_Captian_Hapos_Freezer_Cannon_Actions takes nothing returns nothing
local unit cast = GetTriggerUnit()
local location l = GetUnitLoc(cast)
local location facing = PolarProjectionBJ(l,300,GetUnitFacing(cast))
call CreateUnitAtLoc(GetOwningPlayer(cast),'o001',l,GetUnitFacing(cast))
call IssuePointOrderLoc(GetLastCreatedUnit(),"shockwave",facing)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BTLF',2.00)
set cast = null
set l = null
set facing = null
endfunction
//===========================================================================
function InitTrig_Captian_Hapos_Freezer_Cannon takes nothing returns nothing
set gg_trg_Captian_Hapos_Freezer_Cannon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Captian_Hapos_Freezer_Cannon, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Captian_Hapos_Freezer_Cannon, Condition( function Trig_Captian_Hapos_Freezer_Cannon_Conditions ) )
call TriggerAddAction( gg_trg_Captian_Hapos_Freezer_Cannon, function Trig_Captian_Hapos_Freezer_Cannon_Actions )
endfunction