Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Enforcing realistic movement
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Squishy-1" data-source="post: 125936" data-attributes="member: 5982"><p>i figure i can do it with 2 regions on each moound one being directly in the center and one on the outskirts of the hill and do something like</p><p>event unit enters region (start of hill)</p><p>condition unit = to movement type (walking)</p><p>Action if conditions are true then decrease movement speed (variable with an exponential decay) else if do nothing</p><p> if distance from region (center of hill) = to -1 or less (variable for 1 second ago) increase movement speed by (variable with exponential growth)</p><p></p><p>Event unit is x distance from center of hill</p><p>condition unit is (Walking)</p><p>action disable trigger (hills)</p><p></p><p>but that would make the game really laggy and probably not worth it unless you were to make a king of the hill type game</p><p></p><p>----------Edit------------</p><p></p><p>i just figured it out</p><p>unit movement type = to hover (So it doesnt go over trees and cliffs)</p><p>distance from ground = 0 from origin</p><p>event = units ride height increases from height level x (x being the height from default height level)</p><p>Condition = movement type equal to hover</p><p>Action = if conditions are true then decrease movement speed by (exponential variable) else start trigger (normal)</p><p></p><p>then do the same except opposite</p><p> trigger (normal)</p><p>event = *none*</p><p>condition = unit = to unit being manipulated by trigger</p><p>Action = set unit speed to x</p><p>(x being a variable identifying all units to be effected by this effect)</p><p></p><p></p><p>now all i need is someone to rewrite into jass</p></blockquote><p></p>
[QUOTE="Squishy-1, post: 125936, member: 5982"] i figure i can do it with 2 regions on each moound one being directly in the center and one on the outskirts of the hill and do something like event unit enters region (start of hill) condition unit = to movement type (walking) Action if conditions are true then decrease movement speed (variable with an exponential decay) else if do nothing if distance from region (center of hill) = to -1 or less (variable for 1 second ago) increase movement speed by (variable with exponential growth) Event unit is x distance from center of hill condition unit is (Walking) action disable trigger (hills) but that would make the game really laggy and probably not worth it unless you were to make a king of the hill type game ----------Edit------------ i just figured it out unit movement type = to hover (So it doesnt go over trees and cliffs) distance from ground = 0 from origin event = units ride height increases from height level x (x being the height from default height level) Condition = movement type equal to hover Action = if conditions are true then decrease movement speed by (exponential variable) else start trigger (normal) then do the same except opposite trigger (normal) event = *none* condition = unit = to unit being manipulated by trigger Action = set unit speed to x (x being a variable identifying all units to be effected by this effect) now all i need is someone to rewrite into jass [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Enforcing realistic movement
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top