How would I go about creating unit sprites for multiple players that can walk through other units? Can these be detected by location? Thanks in advance
An artist's depiction of an Extended Unit Death
Check the flag "Active / Disabled (?)" in the sprite properties (assuming you use SCMDraft 2; also, make sure you click the sprite unit in the properties list, as it isn't automatically selected when the properties window comes up). Then enable the doodad state of the unit with triggers. This removes the collision but allows the unit to move around as normal. I forget if it sets the unit to an illegal frame, but it probably does, so after you enable it, order it to move somewhere (also make sure the player can't see this process happen, or else the player may crash from the game).
Here's the steps in a more organized fashion:
1) Place a Unit Sprite in an area players won't see it
2) Open the Sprite Properties (right-click -> Properties) and select the Unit Sprite
3) Check the "Active / Disabled (?)" flag
4) Make a trigger enabling doodad state for the Unit Sprite
5) Also have the trigger order the Unit Sprite to move
Keep in mind this does not work for some units. Unit Sprites
can be detected using locations; they're just like regular units as far as triggers are concerned.
Post has been edited 2 time(s), last time on Dec 3 2011, 9:11 pm by Roy.
How do you make an area not visible to players who own units there?
Edit: I followed your instructions exactly and it still will not walk through units.
Post has been edited 1 time(s), last time on Dec 3 2011, 11:43 pm by Roy. Reason: Don't double-post
Yeah, I'm pretty sure that a unit without bounding boxes cannot walk through other units, but other units can walk through/over it (if that makes sense). This makes it of rather limited utility.
None.
An artist's depiction of an Extended Unit Death
Lanthanide is correct; the unit can be walked through, but it itself cannot walk through things that still have collision.
How do you make an area not visible to players who own units there?
Make the unit owned by a computer and don't give it to a player until the process is complete.
http://www.staredit.net/starcraft/Sprites#Unit_spritesFor an easy look at how you would make sprites stackable, see:
http://www.staredit.net/?file=270 The most stable units that can be used this way are:
Terran Marine (and Jim Raynor (Marine))
Terran Firebat (and Gui Montag)
Terran Ghost ([infested] Samir Duran, and Alexei Stukov)
Terran Civilian
Zerg Zergling (and Devouring One)
Protoss Dark Templar (and the hero variant)
Less stable units that can be used this way are:
Zerg Larva (Makes all built units, not buildings, have same effect)
Zerg Hydralisk
Protoss Zealot
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"