*Adding to what NudeRaider stated*
Only some of the units can cloak in StarCraft, via triggers, and not the actual ability.
- Most, if not all, of the Protoss units (buildings, men, ect...) don't cloak via triggers. It will crash the game.
- Most of the Terran units (buildings, men, ect...) will cloak. Some might crash, but the majority will cloak nicely.
- Most of the Zerg units (buildings, men, ect...) will cloak. You can either have the unit be cloaked (directly cloak a Zerg Hydralisk) or you can just cloak a Zerg Larva, and then create which ever unit you want from there, with them all cloaking.
Note: If you create a Zerg Drone that is cloaked, via which ever method, when you create a building, the building remains uncloaked, as if it were a regular Zerg Drone that was creating it.
Here is a bunch of different units that I cloaked via triggers, and then made it so that they can move around, via ordering them (mouse/triggers)
Cloaked Units Pack -Brontobyte
You can simply cloak almost any unit just by the "Set Doodad State" trigger and setting the units doodad state equal to disabled.
To cloak the unit, and make it able to walk around, requires a little more triggering, but still, the same concept applies.
First you need three locations, usually 2x2 or 1x1, depending on the size of the location. Name them: "DISABLE", "MOVE TO", and "ORDER".
Next, your trigger should look something like this:
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Always();
Actions:
Set Doodad State("Player 8", "Zerg Larva", "DISABLE", disabled);
Wait(111);
Set Doodad State("Player 8", "Zerg Larva", "DISABLE", enabled);
Wait(111);
Set Doodad State("Player 8", "Zerg Larva", "DISABLE", enabled);
Wait(111);
Order("Player 8", "Zerg Larva", "DISABLE", "ORDER", move);
Wait(111);
Give Units to Player("Player 8", "Player 1", "Zerg Larva", 1, "DISABLE");
Move Unit("Player 1", "Zerg Larva", 1, "DISABLE", "MOVE TO");
Comment("Disable");
}
//-----------------------------------------------------------------//
For this to be true, you need to also place a Zerg Larva, owned by Player 8 in the location named "DISABLE", as well as have a unit that creates creep, Zerg Creep Colony works, and have it so that the Zerg Larva is on the creep.
Here is the wiki article on Staredit.net all about Cloaking/Disabling:
http://www.staredit.net/wiki/Cloaking_(Disabling)_2This is currently broken so here is the wiki article from Maplantis.org.
http://www.staredit.net/maplantis/index.php?sid=4c88226ea9;wiki=91It contains the same stuff as the Staredit.net version, but it has less information.
I hope this helps!
None.