Does anyone have an idea how to realize actions, that depend on thy way a unit acts? For example to kill only moving units or to be able to count the time a unit moves in a scoreboard. I tried some ways but haven't found a solution yet.
Is it basicly possbile to differ between moving and stillstanding units within any StarEdit?
greetz
Have you tried like a center location? Where theres like 2 locations, one always centered on the unit thtas moving/not moving and teh second one, is centered on like an invisible air unit that always follows it. Then if that unit brings it to the marine which stand still, kill it. that wayt he marine has to always move....
Um.. I'm still trying to figure out the other way of the marine only dies if it moves and teh leaderboard thingy of points.
The leaderboard thing would probably have something to do with time.
U brought me to a good idea that should make it able to let moving units die. Make a location for each unit u want to supervise and let it follow the unit. If u now want every moving unit to die, fix the location at its position and trigger to kill every unit that leaves its location.
I'm still open for alternate solutions.
Hmm that would work, but tahts only in a fixed location X. there fore the unit would have to stay there always in order to not die. Well fi thats the solution you want, then that works too =)
cRitch has the right idea. You have a location follow the unit. As long as the unit leaves the location (is not in the location on two consecutive trigger firings) you let it live.
I tried it out and it works pretty good if there is only one unit per type and player in a specific location, even if they get killed and resurrected.
But i'm still interested if its possible to differ between moving, patrolling, attacking, burrowed and cloaked units... Are there any parameters to read out and use in triggers?
Burrowed can be detected in certain controlled circumstances, patrol could be detected theoreticaly, but the game wouldn't be able to tell the differnce between manually attack moving between two locations and patrolling.
As for cloaked, you can always use the "if its not dead, its cloaked" method, which places units that would kill uncloaked units.