The Thor gets spawned after an amount of elapsed time along with the other unit that is going to be targeted. Then I want him to use it a couple of seconds later.
I can't seem to figure out how to do it.
Unit: (how do I select the Thor that is not in the game yet but will be spawned later.)
Order: (I have no idea what to select.)
Etc etc.
My deadline is 7th May so I need to get the solution quickly. :/
Here's a basic example of one way you could do it.
First you'd need a unit variable in your trigger.
Create 1 Thor
Set Unit Variable to last created unit.
Create 1 Other Unit (target)
Wait X seconds
Issue order(Use special cannons) to Unit variable aimed at last created unit.
Probably not the most graceful way to do this but it would work.
Use a trigger with event Unit enter regions. Set a region at the place before your thor is created, set the thor to some variable in that trigger, issue order to that variable later. Even better, you can move a region to the exact before creating an unit
Okay I got him to use the effect on it's target, but it's animation for it is not working and I can not find the animation for it in the animation list.
Okay I got him to use the effect on it's target, but it's animation for it is not working and I can not find the animation for it in the animation list.
If you know the name of the animation, type in the name in quotes for custom script.
For example, if the name of the animation is Meow, go to custom script and type in "Meow" with the quotes.
How do I make a spawned Thor use his special ability on another spawned unit?
@Robeezy: Go
Issue Order.
Yeah but I can't figure how to do that.
The Thor gets spawned after an amount of elapsed time along with the other unit that is going to be targeted. Then I want him to use it a couple of seconds later.
I can't seem to figure out how to do it.
Unit: (how do I select the Thor that is not in the game yet but will be spawned later.) Order: (I have no idea what to select.) Etc etc.
My deadline is 7th May so I need to get the solution quickly. :/
@Robeezy
Here's a basic example of one way you could do it.
First you'd need a unit variable in your trigger.
Create 1 Thor
Set Unit Variable to last created unit.
Create 1 Other Unit (target)
Wait X seconds
Issue order(Use special cannons) to Unit variable aimed at last created unit.
Probably not the most graceful way to do this but it would work.
@Robeezy: Go
Use a trigger with event Unit enter regions. Set a region at the place before your thor is created, set the thor to some variable in that trigger, issue order to that variable later. Even better, you can move a region to the exact before creating an unit
@progammer: Go
No need to create a region and move it along, just use Last Created Unit function.
Okay I got him to use the effect on it's target, but it's animation for it is not working and I can not find the animation for it in the animation list.
If you know the name of the animation, type in the name in quotes for custom script.
For example, if the name of the animation is Meow, go to custom script and type in "Meow" with the quotes.
This is from memory, I could be wrong.
It's the animation for 250mm Cannons, isn't it called that?