Myeah, I tried several methods, including the one you just posted, and either the marine cannot be moved or it crashes me.
Would you mind making me a test map in which this is done (and working)?
[Edit]
Never mind, I'm a moron for trying to alter the trigger a bit (as in, creating unit in the same trigger as disabling, moving to a location instead of anywhere etc). It's working now. Gah, I should try to follow instructions precisely, instead of thinking I know how stuff works. How does this stuff work anyway? I mean, why does it work? Any hardcore seekers out there that actually care about why in the world stuff like this happens?
[Edit2]
Wait, ftw? It's crashing me again!
[Edit3]
Well, after much testing, it's not crashing me anymore. This is the trigger I am currently using (apparently, it need not be copied exactly after all).
| Trigger |
| Description: |
| Cloak marine |
|
| Players: |
| ¤ Computer player |
| Conditions: |
| ¤ Always |
| Actions: |
¤ Create 1 Marine for Current Player at cloakingspot
|
¤ Disable doodad state for any unit for Current Player at cloakingspot
|
¤ Wait for 10ms.
|
¤ Enable doodad state for any unit for Current Player at cloakingspot
|
| ¤ Issue order to all any unit owned by Current Player, move from cloakingspot to anywhere. |
You can only make 1 marine with this trigger. Put a condition to the number of marines that you want and then preserve it, if you want more of them.
Note that the unit will cause starcraft to crash in the first few hundred ms, if seen then, and it will only cloak after about a second.In another trigger I fetch it from cloakingspot to a new location, and give it to the player that needs it.
I STILL DONT UNDERSTAND WHAT MAKES THIS WORK
SOMEONE ANYONE PLEASE EXPLAIN</stealth bump>