• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to make units slimmer ?

Status
Not open for further replies.
Level 6
Joined
Apr 20, 2007
Messages
232
Well , to make long storry short , i want that my unit "X" would pass way , that he couldn't pass normally , 'cause it's smaller than he is. I know that it has to do something in object editor (pathing maybe) but i don't know whitch. Help please ?
 
Level 15
Joined
Sep 3, 2006
Messages
1,738
Well , to make long storry short , i want that my unit "X" would pass way , that he couldn't pass normally , 'cause it's smaller than he is. I know that it has to do something in object editor (pathing maybe) but i don't know whitch. Help please ?
If you want to change his actual size, go to Trigger Editor, run this:
Code:
Slimming
    Events
        Unit - A unit enters (Your Rect)
    Conditions
        (Unit-type of (Entering unit)) Equal to Footman
    Actions
        Animation - Change (Entering unit)'s size to (100.00%, 30.00%, 100.00%) of its original size

Just make sure to run a trigger that once it leaves the rect it goes back too 100%, 100%, 100%. Also, if you're wondering what all the values equal; the first value is length, the second value is width, and the third value is height.

Now if you want to make it so it fits all the time, go into Object Editor and edit the Unit, look for something like this:

C) Pathing - AI Placement Type (None)
C) Pathing - Collision Size (##%)
C) Pathing - Pathing Map (None)

Just change the ##% until it fits.
 
Level 11
Joined
Aug 25, 2006
Messages
971
Also, theres a point where a unit (no matter how small) just can't fit into an area even though it looks like they should be able to. This most often happens with cliffs. Hit P in the editor to check if this is the case. Any location that shows up in purple can't be stood on.
 
Status
Not open for further replies.
Top