- Joined
- Nov 13, 2006
- Messages
- 1,814
like hero icons also fixed in top-left corner, i want something similiar but on top-right corner or above the portait panel, any ideea how can i do it?
also could be nice a model (like blank icon model at inventory when dont have item there)
i tryed do it with bunny but still bad....
also could be nice a model (like blank icon model at inventory when dont have item there)
i tryed do it with bunny but still bad....
-
Untitled Trigger 002
-
Events
- Time - Elapsed game time is 0.10 seconds
- Conditions
-
Actions
- Lightning - Create a Chain Lightning - Primary lightning effect from source (Random point in (Playable map area)) to target (Center of (Playable map area))
- Lightning - Change color of (Last created lightning effect) to (1.00 0.50 1.00) with 1.00 alpha
- Set l = (Last created lightning effect)
- Visibility - Disable fog of war
- Visibility - Disable black mask
- Unit - Create 1 Rabbit for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
- Set u = (Last created unit)
- Unit - Add Crow Form to u
- Unit - Remove Crow Form from u
-
Events
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local real x1 = GetCameraTargetPositionX()
local real y1 = GetCameraTargetPositionY()
local real z1 = GetCameraTargetPositionZ()
local real x2 = GetCameraEyePositionX()
local real y2 = GetCameraEyePositionY()
local real z2 = GetCameraEyePositionZ()
local real Zang = bj_RADTODEG * Atan2(z2 - z1, y2 - y1)
local real rotation = bj_RADTODEG * Atan2(y2 - y1, x2 - x1)
//call DisplayTextToForce( GetPlayersAll(), "X2: "+R2S(x2)+" - "+"Y2 "+R2S(y2)+" - "+"Z2: "+R2S(z2)+" - " )
//call DisplayTextToForce( GetPlayersAll(), "X1: "+R2S(x1)+" - "+"Y1: "+R2S(y1)+" - "+"Z1: "+R2S(z1))
call DisplayTextToForce( GetPlayersAll(), "Angle for user: "+R2S(Zang) + " rotation:"+R2S(rotation))
call SetUnitFlyHeight( udg_u, z2-100, 0.00 )
call SetUnitPosition(udg_u, x2, y2)
call SetUnitFacing(udg_u, rotation)
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Untitled_Trigger_001, 0.05 )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction