Jesus4lyf - Transport vJass Problem

eclypt

New Member
Reaction score
4
Heya all and Heya Jesus4lyf!

i got a mini-problem here with the Transport system

so, everytime a units leave a transport, he is instantly moved to its start location, what should i do?
 

eclypt

New Member
Reaction score
4
the unique demo map i have with this is my current map, but it's to big to post (my internet connection sucks)
 

eclypt

New Member
Reaction score
4
JASS:
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
 

Jesus4Lyf

Good Idea™
Reaction score
397
everytime a units leave a transport, he is instantly moved to its start location, what should i do?
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.
Can you replicate it in a new map? If not, it is not a system fault, I assume...
Let me know if you can replicate the bug in a demo map and show me that there is in fact a bug.
 

Laiev

Hey Listen!!
Reaction score
188
don't double post before 24hours -.-

use the edit button

and what do u mean?
 

eclypt

New Member
Reaction score
4
LMAO. i dind't double posted, where's the Kingkingyy3's post? :nuts:

EDIT: i don't know what i've did, but misteriously... the vehicle thing is workin oO'
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
@eclypt
Yea, I've noticed that some of my posts have been mysteriously disappearing, too.
Must be a mod or a server problem, lol
 

eclypt

New Member
Reaction score
4
heya jesus4lyf, if think i've fixed it. but not. it still giving me problems, and the hero is going to the start location '-' idk why.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top