What I'm trying to do is have any of the player's units that touch creep be turned into a cocoon, which then bursts open to create an enemy infested terran. So far I've managed to get them turning into cocoons and being controlled by the computer, but for some reason I just cannot get them to turn into a infested terran after.
This is what I've got so far:
Creep slows down marines by 50%
Every time a marine's speed alters, the game waits 5 seconds then replaces that marine with a cocoon, and changes ownership to the computer.
The game then waits another 5 seconds, then replaces the unit with an infested terran
Very simple, but for some reason the second replacement doesn't work.
I have tried the following alternatives:
- Put the marine into a group called "cocoon" upon speed alteration
- Start a repeating timer once marine is cocooned that every 5 seconds any unit in "cocoon" is replaced with an infested terran
- Start a general "every 5 seconds" periodic event to do the same thing on map initialisation
- Create a new ability which takes 5 seconds called "Hatch" which transforms the cocoon into an infested terran (ability is confirmed to be working perfectly if I give myself a cocoon and use it manually)
- Order any idle units with the "hatch" ability to use "hatch"
- Order any idle cocoon units to use "hatch"
- Pick every unit in "cocoon" and order them to use "hatch"
- Do the two above, but on a 5-second repeating timer
- Set "hatch" to be auto cast so it should fire automatically anyway
NONE of these methods work and it's driving me nuts. Can anyone please explain to me how to get the second transformation going, because I can't think of any other way of doing it. The annoying thing is that all of these methods work if the unit hasn't already been transformed once.
Hello everyone,
What I'm trying to do is have any of the player's units that touch creep be turned into a cocoon, which then bursts open to create an enemy infested terran. So far I've managed to get them turning into cocoons and being controlled by the computer, but for some reason I just cannot get them to turn into a infested terran after.
This is what I've got so far:
Creep slows down marines by 50% Every time a marine's speed alters, the game waits 5 seconds then replaces that marine with a cocoon, and changes ownership to the computer. The game then waits another 5 seconds, then replaces the unit with an infested terran
Very simple, but for some reason the second replacement doesn't work.
I have tried the following alternatives:
- Put the marine into a group called "cocoon" upon speed alteration
- Start a repeating timer once marine is cocooned that every 5 seconds any unit in "cocoon" is replaced with an infested terran
- Start a general "every 5 seconds" periodic event to do the same thing on map initialisation
- Create a new ability which takes 5 seconds called "Hatch" which transforms the cocoon into an infested terran (ability is confirmed to be working perfectly if I give myself a cocoon and use it manually)
- Order any idle units with the "hatch" ability to use "hatch"
- Order any idle cocoon units to use "hatch"
- Pick every unit in "cocoon" and order them to use "hatch"
- Do the two above, but on a 5-second repeating timer
- Set "hatch" to be auto cast so it should fire automatically anyway
NONE of these methods work and it's driving me nuts. Can anyone please explain to me how to get the second transformation going, because I can't think of any other way of doing it. The annoying thing is that all of these methods work if the unit hasn't already been transformed once.