Although I don't know the answer, check out the Data Editor Challenges. A number of the aerial support ones spawn a unit, rotate it, and make it move a distance forward. Most people upload their maps so you can check out exactly what they did.
I also forget exactly which challenge it is, but it should be stickied at the top of the page and it was the one that involved aerial support (bombing runs and stuff).
"I used an effect called Create Unit Set. It contains the MercAirDrop effect from the campaign (which causes the banshee to drop from space like the mercenary banshees in the campaign) and the IssueTurnOrder Effect, which causes the banshees to turn to the target point.
Then I added an expire effect to the final behavior of the MercAirDrop (called MercAirDropC), which issues an order in the direction the banshee is looking (thats why I turn the banshee in the correct direction first), using a persistent effect with an offset."
He says that it issues an order in the direction that the banshee is looking. You will have to check it out but it sounds like it could be of use.
"I used an effect called Create Unit Set. It contains the MercAirDrop
effect from the campaign (which causes the banshee to drop from space
like the mercenary banshees in the campaign) and the IssueTurnOrder
Effect, which causes the banshees to turn to the target point.
I dont have a target point.....
my effect needs to create the target on its own based on the direction my unit is facing....
I have a behavior that issues the order periodically. The unit turns randomly and needs to issue itself an order to move in say "an off set of (10)" in the direction it is facing.
There is no target point hence why Im asking how this can be done in pure data.
I can already do this with triggers and If I make a spell that has a target point.
But the goal of this post is doing it in pure data with out a single trigger or "target point"
Trying to find those fire ball spells that shoot in the direction the unit is facing... I can use one of those for a dummy direction if anything......
Not finding it though
Rollback Post to RevisionRollBack
KageNinpo = SN
DialogLeaderboard & TeamSort
Does it have to be an effect? Otherwise I'd use triggers. Make the effect a dud effect like "Heal Unit 0 points" or something.
You could maybe have the "Order (trigger unit) to (move targeting ((center of (Unit Group ((Triggering unit)))) offset by 1.0 towards (facing angle of (triggering unit)) degrees)) (replacing existing orders)"
To get this. Create action trigger, "Issue Order"
Click the bracket just before the words (Ability Command)
Change it to Function, "Order targeting point"
Ability Command change to Move.
Change Targeting Point to Function, "Point with polar offset"
Change point to Function, "Center of unit group"
Change Unit Group to Function, "Convert Unit to Unit Group"'
Click Degrees and Function, "Facing Angle of Unit"
Otherwise maybe you can have a trigger that creates a point infront of a unit. It's a technique used in the 3rd person targeting techniques I think
So I'd look into having a point offset from the unit by a certain distance and a the angle of the facing unit. Then when effect A is used, it executes the trigger for the triggering unit ordering the unit to move to the point.
So since I am not taking the time to go through the map that Kueken posted, I can't be sure. He definitely uses a target point to turn the unit. But does he use a target point to tell it which direction to move or does he use some other effect that simply says "move forward" ? If the latter is the case, then you don't need a target point. I feel like he wouldn't need to rotate the unit first if he was using a target point to move it.