(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > Cinematics

Cinematics Need any help with cinematics? Discuss cinematic ideas and show us your cinematic skills in this board.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-12-2008, 12:55 PM   #1 (permalink)
 
kids711's Avatar

Crazy User
 
Join Date: Jun 2008
Posts: 51

kids711 has little to show at this moment (2)


Help on cinematic..

The only problem on me is..HOW DO I MAKE THE UNIT MOVE FORWARD BACKWARD LEFTWARD RIGHTWARD EASTWARD SOUTHWARD NORTHWARD WESTWARD UPWARD DOWNWARP LEFTWARD RIGHTWARD ?
kids711 is offline   Reply With Quote
Old 10-13-2008, 05:54 PM   #2 (permalink)
Rui
Development Director
 
Rui's Avatar

-------------------------
 
Join Date: Jan 2005
Posts: 5,600

Rui is a glorious beacon of light (530)Rui is a glorious beacon of light (530)Rui is a glorious beacon of light (530)Rui is a glorious beacon of light (530)Rui is a glorious beacon of light (530)


Please explain.
And refrain from posting in caps.
Rui is offline   Reply With Quote
Old 10-13-2008, 08:11 PM   #3 (permalink)
 
Mechmap's Avatar

For Nazjatar!
 
Join Date: Aug 2007
Posts: 710

Mechmap will become famous soon enough (104)Mechmap will become famous soon enough (104)Mechmap will become famous soon enough (104)


Hes probably meaning moving it without the unit doing to move part. I think it was something with move unit to region but I dont know. I never really got thatt..
Mechmap is offline   Reply With Quote
Old 10-13-2008, 08:28 PM   #4 (permalink)
 
CMarket's Avatar

aka Nikola Luburic
 
Join Date: Apr 2007
Posts: 852

CMarket is a jewel in the rough (243)CMarket is a jewel in the rough (243)CMarket is a jewel in the rough (243)CMarket is a jewel in the rough (243)


Do you mean making the unit move as in walk to a region or just teleport to a region?

If you mean move to region you just use the action:

Actions
Unit - Order YourUnit to Move To (Center of (YourRegion))

If you mean teleport to a region:

Actions
Unit - Move YourUnit instantly to (Center of (YourRegion))
CMarket is offline   Reply With Quote
Old 10-13-2008, 08:53 PM   #5 (permalink)
 
Restor's Avatar

It's all part of the plan
 
Join Date: Mar 2005
Posts: 305

Restor has little to show at this moment (25)Restor has little to show at this moment (25)Restor has little to show at this moment (25)


if you want to move unit "FORWARD BACKWARD LEFTWARD RIGHTWARD" you have to use unit's facing angle,

EASTWARD SOUTHWARD NORTHWARD WESTWARD, just move unit to position of unit +- some points in X or Y coordinates

UPWARD DOWNWARP-unit must be flying unit, then change the flyingh height, there is an action for it
__________________
Basic law of site
Events
User - User posts a message
Conditions
(Posting user) equal to Mod
Actions
If (Mod_opinion) Not equal to True) then do (Set Mod_opinion = True) else do (Do nothing)
Restor is offline   Reply With Quote
Old 10-13-2008, 09:10 PM   #6 (permalink)
 
CMarket's Avatar

aka Nikola Luburic
 
Join Date: Apr 2007
Posts: 852

CMarket is a jewel in the rough (243)CMarket is a jewel in the rough (243)CMarket is a jewel in the rough (243)CMarket is a jewel in the rough (243)


Ah, now I get it.

If you want to make the unit move North, East, West, South do the following action:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (X, Y))

Now, you must replace the XX with the appropriate value. If you want him to go north you need to set the second coordinate, Y, to a positive value, so the action would go something like this:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (0.00, 256.00))

If you want your unit to go south you need to assign Y with a negative value:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (0.00, -256.00))

If you want him to go east you assign the other coordinate, X, with a positive value:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (256.00, 0.00))

And if you want him to go west you assign X a negative value:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (-256.00, 0.00))

-------------------------------------------------------------------------------------------

If you want your unit to go up or down you need to, as Restor said, change the unit to be a flying unit(Let's say with a default flying height of 500) and put the action for his descent:

Animation - Change No unit flying height to 200 at 100.00

This will reduce the unit's flying height to 200 at the rate of 100 units per second meaning that he will reach this flying height in (starting height-new height)/rate meaning (500-200)/100 = 3 seconds.

If you want to increase the height to let's say 1000:

Animation - Change No unit flying height to 1000 at 100.00

This time it will take him 5 seconds to reach the desired height(presuming he started from his default height of 500).

-------------------------------------------------------------------------------------------

Now, if you want to make the unit move forwards you need to mess around with the following action:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by 256.00 towards ((Facing of (YourUnit)) + 0.00) degrees)

This will make him move by 256 forward.
If you want him to move backward all you need to do is modify the action by changing the angle:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by 256.00 towards ((Facing of (YourUnit)) + 180.00) degrees)

If you want him to move left or right simply change the above +180.00 to either +90.00 for left and +270.00 for right.

Hope this helps.
CMarket is offline   Reply With Quote
Old 10-14-2008, 05:32 AM   #7 (permalink)
 
kids711's Avatar

Crazy User
 
Join Date: Jun 2008
Posts: 51

kids711 has little to show at this moment (2)


Quote:
Originally Posted by CMarket View Post
Ah, now I get it.

If you want to make the unit move North, East, West, South do the following action:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (X, Y))

Now, you must replace the XX with the appropriate value. If you want him to go north you need to set the second coordinate, Y, to a positive value, so the action would go something like this:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (0.00, 256.00))

If you want your unit to go south you need to assign Y with a negative value:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (0.00, -256.00))

If you want him to go east you assign the other coordinate, X, with a positive value:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (256.00, 0.00))

And if you want him to go west you assign X a negative value:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (-256.00, 0.00))

-------------------------------------------------------------------------------------------

If you want your unit to go up or down you need to, as Restor said, change the unit to be a flying unit(Let's say with a default flying height of 500) and put the action for his descent:

Animation - Change No unit flying height to 200 at 100.00

This will reduce the unit's flying height to 200 at the rate of 100 units per second meaning that he will reach this flying height in (starting height-new height)/rate meaning (500-200)/100 = 3 seconds.

If you want to increase the height to let's say 1000:

Animation - Change No unit flying height to 1000 at 100.00

This time it will take him 5 seconds to reach the desired height(presuming he started from his default height of 500).

-------------------------------------------------------------------------------------------

Now, if you want to make the unit move forwards you need to mess around with the following action:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by 256.00 towards ((Facing of (YourUnit)) + 0.00) degrees)

This will make him move by 256 forward.
If you want him to move backward all you need to do is modify the action by changing the angle:

Unit - Order YourUnit to Move To ((Position of YourUnit) offset by 256.00 towards ((Facing of (YourUnit)) + 180.00) degrees)

If you want him to move left or right simply change the above +180.00 to either +90.00 for left and +270.00 for right.

Hope this helps.
most helpful post..Thanks for the help !!..
kids711 is offline   Reply With Quote
Old 10-22-2008, 06:16 PM   #8 (permalink)
 
seruk's Avatar

User
 
Join Date: Mar 2005
Posts: 490

seruk has little to show at this moment (24)seruk has little to show at this moment (24)seruk has little to show at this moment (24)


Actually, that will leak.

What you need to do is make a new variable called "TempPoint" which you then destroy.
So per example this:
Unit - Order YourUnit to Move To ((Position of YourUnit) offset by (X, Y))

Should look like this:
Set TempPoint = ((Position of YourUnit) offset by (X, Y))
Unit - Order YourUnit to Move To (TempPoint)
Custom script - call RemoveLocation( udg_TempPoint )

Get it? If you didn't check out Cubasis tut (Getting Rid Of Memory Leaks In GUI - Wc3campaigns), it probably explains things better than me.
__________________
Cry mich ein river.

lolshit
seruk 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
Cinematic problem - no cinematic mode Kingz Cinematics 5 09-13-2008 06:32 PM
[Solved] Cinematic Trouble - Hero screen icons appearing during cinematic 3rgytr54 World Editor Help Zone 2 08-29-2008 09:10 PM
My Cinematic Mechmap Cinematics 13 11-01-2007 10:51 AM
cinematic help hawk_767 Cinematics 3 10-02-2007 09:36 AM
Cinematic The guy who needs help Triggers & Scripts 5 02-18-2007 07:57 PM

All times are GMT. The time now is 10:31 PM.






Your link here 
Loans | Credit Cards | Home Loan | Mortgage Calculator | Current Accounts
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle