HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Weird problem (related to moving units)

02-13-2004, 10:54 AM#1
johnfn
Alright. What im attempting is a vexorian-style hero-chooser. I cant do the real thing for many reasons: one, i dont have tft, so i cant look at the map itself, and two, i dont have tft... so i probably cant do some of the things he did.



Anyway in my improvisational state of mind i decided to make an immovable unit that would turn into your unit when you click on it. My problem is the immoviable part. I tried to set the movement speed to 0, but the lowest it can go is one. so i tried to trigger my way out of it:

events:
Wizard 0001 <gen> is issued an order at a point
Actions:
Order Wizard 0001 <gen> to Stop


This doesnt work, it just lets the keep on going ( think it tells him to stop before the game registers the fact that he's moving)

so i tried
events:
Wizard 0001 <gen> is issued an order at a point
Actions:
Wait 0.01 seconds
Order Wizard 0001 <gen> to Stop


Works fine, except he can still move a little bit. If you try hard enough you can get him to cast a spell. Im probably being over-critical, but how to you make him so he cant move at all?


p.s. pardon any mistakes. My computer felt like lagging up a storm today. so..... slow.....
02-13-2004, 12:30 PM#2
Dimples
In the Object Editor, simply set the unit's movement type to NONE. :)
02-13-2004, 07:51 PM#3
johnfn
unfortunately, I already tried that. The guy still moves, though. Thanks for the help...
02-13-2004, 09:11 PM#4
Dimples
I just tested this again. I set the unit's movement type to NONE, and movement speed to 0. The unit had no move or patrol commands and it couldn't move.

Might have something to do with you not having TFT, though. Still worth a shot. :)
02-13-2004, 11:53 PM#5
johnfn
I solved the problem anyway. Thanks for the help. For future reference, here's what i did:

make a region over the unit in question

use this trigger

unit is issued an order targeting a point

wait 0.01 seconds
move unit instantly to center of region
order unit to stop


thanks again for the help
:D