Hi...
A part of this trigger is not working... i must have done some noob mistake but... i guess it must be due to some noob mistake by me... any way i am new to jass so...
1 prints but not 2
The map is also attached
A part of this trigger is not working... i must have done some noob mistake but... i guess it must be due to some noob mistake by me... any way i am new to jass so...
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local real x1
local real y1
local real x2
local real y2
set udg_angle = GetUnitFacing(udg_pusher)
set x1 = GetUnitX(udg_unit)
set y2 = GetUnitY(udg_unit)
set udg_x = Cos(udg_angle * bj_DEGTORAD)
set udg_y = Sin(udg_angle * bj_DEGTORAD)
set x2 = (Cos(udg_angle * bj_DEGTORAD)*500)
set y2= (Sin(udg_angle * bj_DEGTORAD)*500)
call DisplayTextToForce( GetPlayersAll(), "1" )
set udg_xd = x1 + x2
set udg_yd = y1 + y2
call DisplayTextToForce( GetPlayersAll(), "2" )
set udg_pb = 1
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
1 prints but not 2
The map is also attached