What trigger?at least post the trigger
What trigger?
scope TransportDemo initializer OnInit
private function OnLoad takes nothing returns nothing
local unit u = GetTriggerUnit()
local unit t = GetTransportUnit()
call BJDebugMsg (GetUnitName(t) + " loaded " + GetUnitName (u))
set u = null
set t = null
endfunction
private function OnUnload takes nothing returns nothing
local unit u = GetUnloadedUnit()
local unit t = GetUnloadingTransport()
local player n = Player(PLAYER_NEUTRAL_PASSIVE)
call SetUnitOwner (t, n, true)
call BJDebugMsg (GetUnitName(t) + " unloaded " + GetUnitName (u))
set u = null
set t = null
set n = null
endfunction
private function OnInit takes nothing returns nothing
local trigger t = CreateTrigger()
call Transport_RegisterLoadEvent (t)
call TriggerAddAction (t, function OnLoad)
set t = CreateTrigger()
call Transport_RegisterUnloadEvent (t)
call TriggerAddAction (t, function OnUnload)
endfunction
endscope
Post a demo map. Preferably in the Transport thread.
What are you bumping for? Where's my demo map?Can you replicate it in a new map? If not, it is not a system fault, I assume...
Your demo map does not demonstrate this issue. When I unload the blood mage, it is unloaded underneath the zeppelin, as opposed to its start location.everytime a units leave a transport, he is instantly moved to its start location, what should i do?
Let me know if you can replicate the bug in a demo map and show me that there is in fact a bug.Can you replicate it in a new map? If not, it is not a system fault, I assume...