Hi I'm having a problem stopping a comp's unit to stop cloaking. I don't want it to ever cloak, how would i go about doing that Unit is a ghost. I would also like to acomplish this without external forces like a turrent for the current player to have to detect it
In the menu at the top of the editor, you might find a tab that says players.
In that there are other tabs that say something like spells and abilities. When you click on that, it gives you a list of abilities, you can choose whether or not to disable them for players, including comps.
Or, if you may want them to be able to cloak at a later time, you could use a trigger like this:| Trigger |
| Description: |
| Temporary 'No Cloak' |
|
| Players: |
| ¤ Computer Player |
| Conditions: |
| ¤ 'Don't Cloak' is Set. |
| Actions: |
¤ Modify Unit Energy for 'All' 'Terran Ghost' at 'Anywhere' to '0%'
|
| ¤ Preserve Trigger |
Then just clear the switch to allow them to be able to cloak at some point. you have to modify the energy to a percent in that trigger
Rantent's idea is the best way.
Warhammer, they're both just as effective and flawless if done correctly. Although, Rantents would be the most logical since you won't really need to use the switch to uncloak (since the ghost will never cloak, like he said).
Oops, sorry, Trigger Fixed!
Just go to (in SCXE, and prolly staredit too) player>settings>special abilities>terran tech>personnel cloaking>uncheck "Use defaults for Player x" and then check disable for Player x. That's really the simplest way to do it.
That's what Rantent said in the first reply.