//TESH.scrollpos=0
//TESH.alwaysfold=0
function Debug takes string msg returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg)
endfunction
function DebugReal takes string msg, real r returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + R2SW(r, 1, 2))
endfunction
function DebugInt takes string msg, integer i returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + I2S(i))
endfunction
function DebugBoolean takes string msg, boolean b returns nothing
if (b) then
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = true")
else
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = false")
endif
endfunction
function DebugUnit takes string msg, unit u returns nothing
if (u != null) then
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + GetUnitName(u) + ", ID(" + I2S(GetUnitUserData(u)) + ")")
else
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = null")
endif
endfunction
function DebugPlayer takes string msg, player p returns nothing
if (p != null) then
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + GetPlayerName(p) + ", ID(" + I2S(GetPlayerId(p) + 1) + ")")
else
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = null")
endif
endfunction
function DebugLoc takes string msg, location l returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = X(" + R2SW(GetLocationX(l), 1, 2) + "), Y(" + R2SW(GetLocationY(l), 1, 2) + ")")
endfunction
Name | Type | is_array | initial_value |
Dust_ActiveInstance | integer | No | |
Dust_DefaultOwner | player | No | |
Dust_Dummy | unit | Yes | |
Dust_DummyType | unitcode | No | |
Dust_Duration | real | Yes | |
Dust_Index | integer | No | |
Dust_InstanceCount | integer | No | |
Dust_Interval | real | No | |
Dust_NewDuration | real | No | |
Dust_NewExpand | boolean | No | |
Dust_NewFadeOut | boolean | No | |
Dust_NewHeight | real | No | |
Dust_NewIndex | integer | No | |
Dust_NewLoc | location | No | |
Dust_NewScale | real | No | |
Dust_NewScaleSpeed | real | No | |
Dust_NewTransparency | real | No | |
Dust_NewTransSpeed | real | No | |
Dust_Next | integer | Yes | |
Dust_Prev | integer | Yes | |
Dust_Recycle | integer | Yes | |
Dust_Scale | real | Yes | |
Dust_ScaleSpeed | real | Yes | |
Dust_Timer | timer | No | |
Dust_Transparency | real | Yes | |
Dust_TransSpeed | real | Yes |
// Enable "Automatically create unknown variables while pasting trigger data" on File --> Preferences.
// Import DustWave.blp file from Import Manager.
// Import DustWaveVersion2.mdx file from Import Manager.
// Copy Dustwave dummy.
// Copy Dustwave GUI trigger and create or copy the init example.
// Configure the init trigger.
// Set the Full Path of DustWave.blp to only "DustWave.blp".
// NOTE: You can also change the dustwave model in Object Editor if you have another version of the it.