Hi guys,
hope you can help me out. As you see by my post count i'm fairly new here. I've been reading this forum for a while now and i'm creating for a few days now. You'll probably laugh at me for asking these basic questions :P. I learned the basics from my little bro, but since he's a wc3 editor by nature he's not really into the galaxy editor yet.
So here is wat i want to make:
I've created an ingame buttons layout that will allow you to 'drop in' units. And the biggest problem i have now is that i don't know how to use an 'mouse x/y position clicked in the world' variable. My bro helped me yesterday and i got it to create an explosion at the point where i clicked at the cost of vespene gas. It's a start :).
My question briefly: I want to fly in a transport to drop of units and fly away, and my problems are:
- I don't know how to use the X/Y variable correctly
- I don't know how to move newly created and loaded transport
Well it would probably be best to use bullet points or numbers for each question to make answering easier :). Although to make a transport go to point (X,Y), make a point in the terrain editor and then make the transport 'Issue order (move targeting point 'point')' and then 'Issue order (unload - medivac)'
Mouse pos is an action or something. Not too sure :/.
Also, for someone who is just starting, it's impressive that you have already made some stuff.
Order-Issue order targeting point(This point can be a coordinate or position of units) for Unit(last created unit) Order(move) ; the point value of the target order is where you control where you want the action to take place.
do while(UnitNumorders > 0 ) {wait .5 seconds} ;not sure if this is exactly correct but there is a check you can use to see how many orders a unit has qued up. Basically this while loop waits till the unit completes its current order.
Order Unit(last created Unit) to unload Loaded units at point( position of unit(last created unit)
do while(UnitNumorders > 0 ) {wait .5 seconds}
Order-Issue order targeting point(give it the x,y coordinates that you want the unit to fly to after dropping off units) for Unit(last created unit) Order(move)
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
to make that one easier: skip the whiles, and at the issue order bits, set it to after current orders.
so you would get:
Create Unit (drop ship)
Order-Issue order targeting point(This point can be a coordinate or position of units) for Unit(last created unit) Order(move) ; the point value of the target order is where you control where you want the action to take place. (you can use replace existing orders for this one)
Order Unit(last created Unit) to unload Loaded units at point( position of unit(last created unit) (here you use After current orders)
Order-Issue order targeting point(give it the x,y coordinates that you want the unit to fly to after dropping off units) for Unit(last created unit) Order(move) (here you also use After current orders)
now for the thing that wasn't mentioned but should be in the trigger, best position is at the end if you used what I mentioned above:
Create Units in Cargo of Last Created Unit (here you set Units to the units you want the dropship to have in it's cargo load. so the units the dropship should unload)
Hi guys, hope you can help me out. As you see by my post count i'm fairly new here. I've been reading this forum for a while now and i'm creating for a few days now. You'll probably laugh at me for asking these basic questions :P. I learned the basics from my little bro, but since he's a wc3 editor by nature he's not really into the galaxy editor yet.
So here is wat i want to make: I've created an ingame buttons layout that will allow you to 'drop in' units. And the biggest problem i have now is that i don't know how to use an 'mouse x/y position clicked in the world' variable. My bro helped me yesterday and i got it to create an explosion at the point where i clicked at the cost of vespene gas. It's a start :).
My question briefly: I want to fly in a transport to drop of units and fly away, and my problems are: - I don't know how to use the X/Y variable correctly - I don't know how to move newly created and loaded transport
There must be an easy way to do this right?
Thanks in advance, Xyfi
@Xyfi: Go
Well it would probably be best to use bullet points or numbers for each question to make answering easier :). Although to make a transport go to point (X,Y), make a point in the terrain editor and then make the transport 'Issue order (move targeting point 'point')' and then 'Issue order (unload - medivac)'
Mouse pos is an action or something. Not too sure :/.
Also, for someone who is just starting, it's impressive that you have already made some stuff.
@Xyfi: Go
Ok, here we go
So you have a simple action you wanna do
try this
Event- time elapsed 6 seconds Actions -
@SouLCarveRR: Go
to make that one easier: skip the whiles, and at the issue order bits, set it to after current orders.
so you would get:
now for the thing that wasn't mentioned but should be in the trigger, best position is at the end if you used what I mentioned above:
Thx for the help till now, i'm going to try these options and come back if i have any more problems! :)
Edit: The thing is (and now i see my post was a little confusing) i want the dropship to go to a place where i clicked.
Edit: And that's why i think i need the following variable:
Marines Drop Location = (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world))) <Point>