I would add a Buff behaviour that uses a periodic Search Area that applies an Issue Order to the roach. This is validated by an ennumerate area larger than that for unburrowing. That way it will find a target and be ordered to move towards it making it face the right direction before it comes into range to unburrow.
Not able to get this working... Did the following:
- Created two actors for the burrowed roach which represent the Aquire range and Attack (surface) range for visual testing.
- Created a Buff Behavior set to call a Search Area effect every 0.2 seconds
- Created a Search Area Effect looking at range 6 for enemies.
- Created a Issue Order Effect set to Attack having an Enumerated Area Validator which looks in a range of 6 for enemies.
Buff uses a Search to Issue Order to Attack with Validator. I think I have the chain set up correctly, but missing something apparently. I watched OneTwo's Video on setting up a Healing Fountain where he sets up a periodic buff to search which calls another effect to apply a behavior. Can't seem to find an example of a periodic buff which searches an area, find targets, and issues an orders to itself. I've attached the file I'm working on.
If you want trigger answers stop posting in the data forum and do so in the trigger forum.
My apologies DrSE. Making stupid comments like asking to do something in the data editor vice a trigger (when I'm in the data forum) is redundant and wastes the reader's time. I'll keep my comments more focused in the future.
I would add a Buff behaviour that uses a periodic Search Area that applies an Issue Order to the roach. This is validated by an ennumerate area larger than that for unburrowing. That way it will find a target and be ordered to move towards it making it face the right direction before it comes into range to unburrow.
You've mentioned a few things I've not yet attempted like adding a buff behaviour, periodic search area and issuing orders... all of which sounds like its in the data editor which is what I'm looking for vice a trigger. I'll search around for examples of each one of those. I'll post back if I get all tripped up (highly likely). Thx for the suggestion and the homework assignment! :-)
Yes, in the update above I mentioned that.. not sure if you replied before or after. Adding a weapon worked, but only for a stationary burrowed roach. My map spawns a raoch, burrows it and ordered to attack a point. Problem I'm having (without the fake weapon) is that when the roach unburrows from the Auto Cast, its not facing its target. The facing appears to be random and will only face the target once the unburrow animation is finished.
By adding this "fake weapon" the roach will stop at a distance of 6 from a target and "pretend" to be attacking it while burrowed. I need to the roach to get in ambush range before it surfaces and attacks.
I have burrowed roaches that Auto Cast unborrow when a target is within a range of 2. Unfortunately, they are stuck facing the burrowed angle and do not turn to face their target until after they surface thus wasting time and taking damage.
What I would like for them to do while burrowed is turn to face (and track) a potential target within sight range (set to 6). I would like to do this in the data editor instead of a trigger if possible? Any sudgestions? Thx in advance!
Update - Got this sort of working by giving the burrowed roach the ability to attack and giving it a fake weapon that has a range of 6. The stationary roach will start tracking the target at range 6 and turn to face it while the target moves. All great for a stationary burrowed roach, but once you issue an order for the burrowed roach to attack a point (part of my map) it will stop and use the fake weapon (doing nothing but tracking) at range 6.
Not able to get this working... Did the following:
- Created two actors for the burrowed roach which represent the Aquire range and Attack (surface) range for visual testing.
- Created a Buff Behavior set to call a Search Area effect every 0.2 seconds
- Created a Search Area Effect looking at range 6 for enemies.
- Created a Issue Order Effect set to Attack having an Enumerated Area Validator which looks in a range of 6 for enemies.
Buff uses a Search to Issue Order to Attack with Validator. I think I have the chain set up correctly, but missing something apparently. I watched OneTwo's Video on setting up a Healing Fountain where he sets up a periodic buff to search which calls another effect to apply a behavior. Can't seem to find an example of a periodic buff which searches an area, find targets, and issues an orders to itself. I've attached the file I'm working on.
My apologies DrSE. Making stupid comments like asking to do something in the data editor vice a trigger (when I'm in the data forum) is redundant and wastes the reader's time. I'll keep my comments more focused in the future.
You've mentioned a few things I've not yet attempted like adding a buff behaviour, periodic search area and issuing orders... all of which sounds like its in the data editor which is what I'm looking for vice a trigger. I'll search around for examples of each one of those. I'll post back if I get all tripped up (highly likely). Thx for the suggestion and the homework assignment! :-)
Yes, in the update above I mentioned that.. not sure if you replied before or after. Adding a weapon worked, but only for a stationary burrowed roach. My map spawns a raoch, burrows it and ordered to attack a point. Problem I'm having (without the fake weapon) is that when the roach unburrows from the Auto Cast, its not facing its target. The facing appears to be random and will only face the target once the unburrow animation is finished.
By adding this "fake weapon" the roach will stop at a distance of 6 from a target and "pretend" to be attacking it while burrowed. I need to the roach to get in ambush range before it surfaces and attacks.
I have burrowed roaches that Auto Cast unborrow when a target is within a range of 2. Unfortunately, they are stuck facing the burrowed angle and do not turn to face their target until after they surface thus wasting time and taking damage.
What I would like for them to do while burrowed is turn to face (and track) a potential target within sight range (set to 6). I would like to do this in the data editor instead of a trigger if possible? Any sudgestions? Thx in advance!
Update - Got this sort of working by giving the burrowed roach the ability to attack and giving it a fake weapon that has a range of 6. The stationary roach will start tracking the target at range 6 and turn to face it while the target moves. All great for a stationary burrowed roach, but once you issue an order for the burrowed roach to attack a point (part of my map) it will stop and use the fake weapon (doing nothing but tracking) at range 6.