QUOTE(Nquiksilver @ Aug 18 2006, 09:59 AM)
wow, thanks guys, both of the problems have been solved, but another one rises. Is there a way that if i give the hostage a command while it is under my control, so that once i lose control of it, the order initially given to it will be stopped and the unit will hold position? does that make sence, ill try to reword. As stated in my initial post, I wanted to be able to gain control of a neutral unit (the 'Hostage) when i eneter a specific location centered on it (solved). I made the unit invincible because i dont want the opposing team killing thier hostage, and without having consequences for doing so. Bu tthe problem is, that even when the hostage is not under my control, it will continue to follow out the order that i gave to it before i lost control of it. I am seeking a way to make it so that once i lose control and ownership reverts back to P8, that the unit will get a new order, in this case, hold position. Is there anyway to do this? I was looking through the AI Scripts and found "Set Generic Command Target" and "Clear Previous Combat Data". I tried the latter but found it did nothing. The trigger was when there is P8 commands exactly 1 Hostage at Location Hostage1, Clear previous combat data. and nothing appeared to happen when i tested it.
[right][snapback]546834[/snapback][/right]
just TELEPORT(AKA MOVE) the unit onto invalid terrain w/ preserve. the unit will be able to attack(if i remember correctly), but it won't be able to move. i don't think it can be attacked, but if its invincible, it doesn't matter anyways.