Ok since I don't get what kind of answer is that I'll skip to the question-->
I am trying to make a dummy units scale to match the camera perfectly (almost is good enough).
It's too troublesome to learn this stuff myself so I'm asking everywhere.
If I still don't get any answer I might consider joining the jass class. Coding is the thing I suck at most.
Obviously get scale X Y Z of camera does not work
function Trig_Setup_Actions takes nothing returns nothing
set udg_u = CreateUnit(Player(0), 'hfoo', 0.00, 0.00, 0.00)
call UnitAddAbility(udg_u, 'Amrf')
call UnitRemoveAbility(udg_u, 'Amrf')
set udg_Offset = 0.00
set udg_FlyHeight = 0.00
set udg_Angle = 0.00
call SetUnitFlyHeightBJ( udg_u, udg_FlyHeight, 0.00 )
endfunction
//===========================================================================
function InitTrig_Setup takes nothing returns nothing
set gg_trg_Setup = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup, function Trig_Setup_Actions )
endfunction
function Trig_The_Code_Actions takes nothing returns nothing
local real x = GetCameraTargetPositionX()
local real y = GetCameraTargetPositionY()
call SetUnitX(udg_u, x + udg_Offset * Cos(bj_DEGTORAD * udg_Angle))
call SetUnitY(udg_u, y + udg_Offset * Sin(bj_DEGTORAD * udg_Angle))
endfunction
//===========================================================================
function InitTrig_The_Code takes nothing returns nothing
set gg_trg_The_Code = CreateTrigger( )
call DisableTrigger( gg_trg_The_Code )
call TriggerRegisterTimerEventPeriodic( gg_trg_The_Code, 0.03 )
call TriggerAddAction( gg_trg_The_Code, function Trig_The_Code_Actions )
endfunction
If you don't know then maybe I can apologize to you by showing my manly awesomeness!