Truth be told I don't entirely understand this function, but this is my guesstimation on it's usage. Documented for other people's benefit.
This function returns the best location to place and AoE attack on the group with the specified parameters (grammar typo straight from editor).
It uses the parameters: (All of these are guesses)
Group: Group of units you are trying to Area of Effect.
MinHits: Guess: minimum hitpoint value needed in unit group for consideration.
DamageBase: Guess: base damage enemy for consideration.
MinScore: Guess: Minimum score of unit in player group to be considered.
Radius: Guess: Radius blast of AoE effect.
From: Position of AoE effect caster, or any point you're doing the calculation from.
Range: Range of AoE effect.
Bonus Attribute: Guess: Attribute used to determine best point? Not really sure, it's an integer param.
I attached an example map to show this in action. In it, I attach a 9 radius circle region to a Probe called ProbeRegion and edit the actor PsiStormRange to permanently put it's 9 range effect on a probe at birth (to help visualize this radius).
I then have an enemy drone (so it isn't part of the logical search) whom moves to the location that the aoe effect is best at.
Then, I have 4 scv's to represent the targets, put in a group called SCVGroup.
Here's the code:
Unit - Order Drone [29.41, 29.87] to ( Move targeting (Returns the best location to place and AOE attack on the group with the specified parameters ((Units in SCVGroup within ProbeRegion, with at most Any Amount), 0, 0, 0.0, 3.0, (Position of Probe [25.88, 29.95]), 9.0, 0))) (Replace Existing Orders)
This simulates a 9 range, 3 radius skill for the best aoe point. The unit group is SCV's, within a radius of the player, the drone shows where the AoE would fire at.
It's important to do a check before running this command to ensure it will have a point in the end, such as ensuring there are any enemies within the range you specify.
If not, you get a trigger error (Noted on the start of the movie).
Truth be told I don't entirely understand this function, but this is my guesstimation on it's usage. Documented for other people's benefit.
This function returns the best location to place and AoE attack on the group with the specified parameters (grammar typo straight from editor).
It uses the parameters: (All of these are guesses)
Group: Group of units you are trying to Area of Effect.
MinHits: Guess: minimum hitpoint value needed in unit group for consideration.
DamageBase: Guess: base damage enemy for consideration.
MinScore: Guess: Minimum score of unit in player group to be considered.
Radius: Guess: Radius blast of AoE effect.
From: Position of AoE effect caster, or any point you're doing the calculation from.
Range: Range of AoE effect.
Bonus Attribute: Guess: Attribute used to determine best point? Not really sure, it's an integer param.
I attached an example map to show this in action. In it, I attach a 9 radius circle region to a Probe called ProbeRegion and edit the actor PsiStormRange to permanently put it's 9 range effect on a probe at birth (to help visualize this radius).
I then have an enemy drone (so it isn't part of the logical search) whom moves to the location that the aoe effect is best at.
Then, I have 4 scv's to represent the targets, put in a group called SCVGroup.
Here's the code:
Unit - Order Drone [29.41, 29.87] to ( Move targeting (Returns the best location to place and AOE attack on the group with the specified parameters ((Units in SCVGroup within ProbeRegion, with at most Any Amount), 0, 0, 0.0, 3.0, (Position of Probe [25.88, 29.95]), 9.0, 0))) (Replace Existing Orders)
This simulates a 9 range, 3 radius skill for the best aoe point. The unit group is SCV's, within a radius of the player, the drone shows where the AoE would fire at.
It's important to do a check before running this command to ensure it will have a point in the end, such as ensuring there are any enemies within the range you specify.
If not, you get a trigger error (Noted on the start of the movie).