(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-17-2008, 06:12 PM   #1 (permalink)
 
WarCoelho's Avatar

User
 
Join Date: Sep 2008
Posts: 48

WarCoelho is an unknown quantity at this point (0)


Question How can I make a unit shot and walk at the same time?

The title already says all.How can I make a unit shot and walk at the same time?Is this possible?I need it for my STAR WARS map,i want to make the X-Wing shot and walk at the same time,like in the movie.

WarCoelho is offline   Reply With Quote
Old 11-17-2008, 06:29 PM   #2 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


Use a phoenix fire ability.
Day-Elven is offline   Reply With Quote
Old 11-17-2008, 06:33 PM   #3 (permalink)

I'm right, you're wrong.
 
Join Date: Aug 2005
Posts: 2,538

Eleandor is just really nice (333)Eleandor is just really nice (333)Eleandor is just really nice (333)


Not possible.

What you can do is simulate movement through
call SetUnitX(unit, real)
call SetUnitY(unit, real)

Using those 2 functions moves the unit instantly (similar to a slide trigger) while not interrupting its orders (i.e. attacking)
__________________
Eleandor is offline   Reply With Quote
Old 11-17-2008, 07:43 PM   #4 (permalink)
 
WarCoelho's Avatar

User
 
Join Date: Sep 2008
Posts: 48

WarCoelho is an unknown quantity at this point (0)


Quote:
Originally Posted by Eleandor View Post
Not possible.

What you can do is simulate movement through
call SetUnitX(unit, real)
call SetUnitY(unit, real)

Using those 2 functions moves the unit instantly (similar to a slide trigger) while not interrupting its orders (i.e. attacking)
Hmmm...Could you explain how can i transform your call... in a trigger?Because i can't undestand it.
WarCoelho is offline   Reply With Quote
Old 11-17-2008, 07:44 PM   #5 (permalink)
 
HappyTauren's Avatar

Banned
 
Join Date: Nov 2006
Posts: 6,459

HappyTauren has much of which to be proud (1016)HappyTauren has much of which to be proud (1016)HappyTauren has much of which to be proud (1016)HappyTauren has much of which to be proud (1016)HappyTauren has much of which to be proud (1016)HappyTauren has much of which to be proud (1016)


Unit - Move Unit
HappyTauren is offline   Reply With Quote
Old 11-17-2008, 07:46 PM   #6 (permalink)
 
graystuff111's Avatar

Happy Peon
 
Join Date: Dec 2007
Posts: 498

graystuff111 has little to show at this moment (52)


How about the barrage ability?
__________________
graystuff111 is offline   Reply With Quote
Old 11-17-2008, 11:38 PM   #7 (permalink)
 
Dagguh's Avatar

WorldEditor Lame'O
 
Join Date: May 2008
Posts: 101

Dagguh has little to show at this moment (10)Dagguh has little to show at this moment (10)


Barrage? WTF it fires when the unit fires.

Pheonix Fire? Did you see a homing laser shooting in whatever direction it wants?

About the seperate X and Y replacement. It WILL work.
But how exactly do we have to type the unit variable? It is some ID or what?
Dagguh is offline   Reply With Quote
Old 11-17-2008, 11:52 PM   #8 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


It's a variable of type unit.
Example:
local unit u=GetLastCreatedUnit()

Real value --> Sets the oposition of variable unit (X coordinate)
call SetUnitX(u, real)

Real value --> Sets the oposition of variable unit (Y coordinate)
call SetUnitY(u, real)
Day-Elven is offline   Reply With Quote
Old 11-18-2008, 10:01 AM   #9 (permalink)
 
Dagguh's Avatar

WorldEditor Lame'O
 
Join Date: May 2008
Posts: 101

Dagguh has little to show at this moment (10)Dagguh has little to show at this moment (10)


Alright man, thanks.
Dagguh is offline   Reply With Quote
Old 11-18-2008, 11:21 AM   #10 (permalink)

I'm right, you're wrong.
 
Join Date: Aug 2005
Posts: 2,538

Eleandor is just really nice (333)Eleandor is just really nice (333)Eleandor is just really nice (333)


Quote:
Originally Posted by HappyTauren View Post
Unit - Move Unit
That interrupts its current actions, and thus he'll never attack? I think you MUST use SetUnitX and SetUnitY...
__________________
Eleandor is offline   Reply With Quote
Old 11-18-2008, 11:35 AM   #11 (permalink)
 
Silk060's Avatar

I'm a BOT!
 
Join Date: Oct 2008
Posts: 21

Silk060 has little to show at this moment (2)


What about to give him an ability that auto attacks enemy units even while moving?
__________________

I know you want to press it... Press! Please? :D

You -> <- Me
Silk060 is offline   Reply With Quote
Old 11-18-2008, 11:49 AM   #12 (permalink)

User
 
Join Date: Nov 2007
Posts: 1

Lupus has little to show at this moment (1)


You also can create dummy unit with the same attack as main and move this dummy with SetUnitX(u,x), SetUnitY(u,y) functions to position of main unit every 0.1 seconds (as example).
Lupus is offline   Reply With Quote
Old 11-18-2008, 04:37 PM   #13 (permalink)
 
WarCoelho's Avatar

User
 
Join Date: Sep 2008
Posts: 48

WarCoelho is an unknown quantity at this point (0)


Hmmm...The X and Y thing is a good idea but,I still can't understand it!Can someone explain?Is this X and Y thing a trigger?

WarCoelho is offline   Reply With Quote
Old 11-19-2008, 09:22 PM   #14 (permalink)
 
reatek's Avatar

Christmaz is Wicked Sick!
 
Join Date: Apr 2008
Posts: 153

reatek has little to show at this moment (5)


I sure can't xD ! Ask someone to do it for you in a trigger. Or just like they say - use phoenix fire! It is the best way... hope it works for you.
reatek is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Unsolved] How can I make unit with foot movement type able to walk on top of water RedFlash World Editor Help Zone 3 11-02-2008 11:53 AM
[Unsolved] How to get my unit to walk on things ex Building RedFlash World Editor Help Zone 5 10-19-2008 03:53 AM
Making a unit walk Mike117 World Editor Help Zone 5 02-27-2008 09:39 AM
Making a unit Walk Back guhubner Modeling & Animation 7 09-27-2007 09:10 AM
How to make a unit unable to hold 2 equipments at 1 time? LeviathanReborn Map Development 4 09-09-2005 06:25 PM

All times are GMT. The time now is 06:10 AM.






Your link here 
Bankruptcy | Mortgage Calculator | Credit Cards | Consumer information | Mortgages
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle