this works really fine as a abillity. Now i want to trigger this abillity everytime i do a leftklick anywhere. Cant find the in the Dataeditor created abillity in the triggereditor under order unit with targetpoint. Why is this ability not in the list?
What method can u suggest me to get "shoot per leftklick" in a WASDmovement game.
My favorite would be a trigger wich casts Küekens fireball from the tutorial always per leftklick.
You can make a trigger that detects when the player left clicks, then get the x and y coordinates of that click point, then order your unit to use the ability targeting the click point using the x and y coordinates.
To get the coordinates of the klick seems very usefull.
But i have still the problem, that i cant find the abillity in the triggereditor. Its a effekt-target-abillity. I gave it to a unit (tychus) and it works fine per button. When i start the effekt at the point of my unit, the shoot works fine, but i cant aim it then. It just fire straight downward then.
I attached the map. the abillity and all effekts are called rocket1. Tychus got the ability on him to test it.
You created an effect by a player on the position of the unit. That's won't make the unit shoot.
You need to order the 'unit' to use an 'ability' at a targeting a 'point'.
So, add an order action, click on the green "(" to change the order type and select the one which orders the unit to do something with a target 'point'.
There is still the problem when i go to: order unit to use ability to a target point or any other versions of ability i cant find my "rocket1" ability in the list. Its not there!
There is still the problem when i go to: order unit to use ability to a target point or any other versions of ability i cant find my "rocket1" ability in the list. Its not there!
You did not define a Default Button for the ability, thats why it doesn't appear in the list. Create a new button, select your ability, go to the Commands+ field, select Execute, look for the Default Button dropdown, select your newly created button, and you should be able to select your ability in the trigger.
Also, you want your caster to cast the ability on the targetpoint not on the position of himself; you might want to change that.
Quote:
When i start the effekt at the point of my unit, the shoot works fine, but i cant aim it then. It just fire straight downward then.
You start the effect from a player at the caster. What you want to do is starting the effect from the caster to the target point. Use the Create Effect At Point (From Unit) function instead; set the Caster to your Player Unit and the Point to your targetpoint.
Both of the methods should work properly. However, executing the effect would always succeed, as long as the caster is a valid unit, while issuing the ability order would not be casted, if the caster is stunned or something; also it might interfere with other unit orders. You can try out, which one works the best for you.
my units facing angle is permanent oriented to the crosshair in the middle. sometimes when i want to shoot he dont do it because he stands a little in the wrong direction. i added a actor direct infront of the ability order to adjust the facing angle, this made it much better but its not gone.
i need a dataeditor option to set, that the unit dont have to watch in the direction of target to cast.
I have a strange bug. Wanted to make my second weapon, a M16 with hydralisk needles as projektile. Worked fine so far but they shoot in wrong direction. Exact the angle you aim forward it fires out his backside. I compared it several times with the tutorial, what change could bring me this problem?
In the map, just start, leftklick is the fine working rocket, rightklick the buggy M16.
I work on a new projekt wit WASD movement.
I created a abillity by Kuekens Tutorial : http://www.sc2mapster.com/forums/resources/tutorials/17154-data-colliding-projectiles/#posts
this works really fine as a abillity. Now i want to trigger this abillity everytime i do a leftklick anywhere. Cant find the in the Dataeditor created abillity in the triggereditor under order unit with targetpoint. Why is this ability not in the list?
What method can u suggest me to get "shoot per leftklick" in a WASDmovement game.
My favorite would be a trigger wich casts Küekens fireball from the tutorial always per leftklick.
You can make a trigger that detects when the player left clicks, then get the x and y coordinates of that click point, then order your unit to use the ability targeting the click point using the x and y coordinates.
To get the coordinates of the klick seems very usefull.
But i have still the problem, that i cant find the abillity in the triggereditor. Its a effekt-target-abillity. I gave it to a unit (tychus) and it works fine per button. When i start the effekt at the point of my unit, the shoot works fine, but i cant aim it then. It just fire straight downward then.
I attached the map. the abillity and all effekts are called rocket1. Tychus got the ability on him to test it.
You created an effect by a player on the position of the unit. That's won't make the unit shoot.
You need to order the 'unit' to use an 'ability' at a targeting a 'point'.
So, add an order action, click on the green "(" to change the order type and select the one which orders the unit to do something with a target 'point'.
There is still the problem when i go to: order unit to use ability to a target point or any other versions of ability i cant find my "rocket1" ability in the list. Its not there!
You have to set a button for the Execution command of your ability. Without this, the ability will not be shown in the trigger editor.
You did not define a Default Button for the ability, thats why it doesn't appear in the list. Create a new button, select your ability, go to the Commands+ field, select Execute, look for the Default Button dropdown, select your newly created button, and you should be able to select your ability in the trigger.
Also, you want your caster to cast the ability on the targetpoint not on the position of himself; you might want to change that.
You start the effect from a player at the caster. What you want to do is starting the effect from the caster to the target point. Use the Create Effect At Point (From Unit) function instead; set the Caster to your Player Unit and the Point to your targetpoint.
Both of the methods should work properly. However, executing the effect would always succeed, as long as the caster is a valid unit, while issuing the ability order would not be casted, if the caster is stunned or something; also it might interfere with other unit orders. You can try out, which one works the best for you.
thx guys! works real fine!
but for the 100% is one little thing missing:
my units facing angle is permanent oriented to the crosshair in the middle. sometimes when i want to shoot he dont do it because he stands a little in the wrong direction. i added a actor direct infront of the ability order to adjust the facing angle, this made it much better but its not gone.
i need a dataeditor option to set, that the unit dont have to watch in the direction of target to cast.
Execute the effect instead of ordering the ability, or set the Arc for the ability to 360.
I have a strange bug. Wanted to make my second weapon, a M16 with hydralisk needles as projektile. Worked fine so far but they shoot in wrong direction. Exact the angle you aim forward it fires out his backside. I compared it several times with the tutorial, what change could bring me this problem?
In the map, just start, leftklick is the fine working rocket, rightklick the buggy M16.
Such obscene language ;)
Your initial effect probably has a positive y-offset, a negative offset is forward, while a positive offset is backwards.
cant believe it. you are so good!
read your words, then read it again and think about them, go in editor, add a single - to 1 number and it works! :)