So anyway, I have a few questions. First of all, I need to figure out how to write a trigger that detects if a unit is cloaking or decloaking in a location. That is, I don't need to know if a unit is cloaked in a location, I need to know if they are (de)cloaking.
Second of all, I don't have any speakers, so I can't use SCMDraft2 to get this on my own... If anyone happens to know the filenames (and paths, if necessary) for the Dropship loading and unloading sounds, I would greatly appreciate it if you could tell me. (I did Google this, couldn't find anything.)
Third of all, I'm gonna run a test later (in a few hours) when I get the chance, but I may as well ask now. How does one cast Irradiate on a unit using a trigger? I was thinking about having this setup, where P1 owns the target unit, and that unit is biological. P2 and P3 are dummy players; they are enemies of each other, and P2 is an enemy of P1.
1. Spawn an Arbiter and Science Vessel owned by P2. Spawn both near the target unit.
2. Spawn a Goliath owned by P3 (and cloak it too, if possible). Figure out how to make the Goliath attack the Science Vessel. (Perhaps I can have P3 turn on shared vision for P2?)
3. The SciVessel will then cast Irradiate on the nearest enemy biological unit. The Goliath is mechanical and is thus exempted (and it's cloaked anyway). P1's unit is all that remains.
4. Figure out some way to detect the irradiation and remove the P2 and P3 units.
5. ???
6. PROFIT!
Assuming that approach is correct, the main thing I need help with is #4 in that sequence.
None.