Staredit Network

Staredit Network -> UMS Assistance -> Hold Posistion AI Script?
Report, edit, etc...Posted by Fiend on 2005-03-31 at 18:45:03
I was working on my bound map and I wanted this firebat for player 8 to hold it's posistion at this location. I want it to only attack as soon as Force 1 (players 1-6) moves in it's attack range without the firebat moveing after the units. I even had it patroll in it's own location, and it still chased my zergling when I went near it. If I used hypers and haved it move to it's own location repetively, it won't attack then.

The only way I could think of haveing it hold it's posistion is by haveing a small location that is it's boundaries and won't let it out, but it look unprofessional and I would like it to not move at all.

Any help is appreciated.
Report, edit, etc...Posted by KaboomHahahein on 2005-03-31 at 19:00:42
There is not. Just use the way if they leave the location they go back in. Like you already have.
Report, edit, etc...Posted by Snipe on 2005-03-31 at 20:35:06
this is what you do
put a unit around the unit
location around the unit*
than make the unit keep moving to that location
Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-31 at 20:52:06
hehe, if you want the unit to Hold position than at a given moment, Not hold position, This is simply resolved. Use switches smile.gif.

Put a location name "Unit Halt" around your unit.


Trigger
Description:
Hold position
Players:
¤ Player that owns unit
Conditions:
¤ Always
Actions:
¤ Set switch "Hold position"


Than.


Trigger
Description:
Position is held
Players:
¤ Owner
Conditions:
¤ "Hold position" is set
Actions:
¤ isue order to anyunit owned by current player at location "unit halt" move to "unit halt"
¤ preserve trigger


To stop holding position do,


Trigger
Description:
Stop holding
Players:
¤ Owner
Conditions:
¤ Whatever
Actions:
¤ Clear switch "Hold position"

Report, edit, etc...Posted by LegacyWeapon on 2005-03-31 at 21:02:16
The problem is getting the firebats to hold position and no that will not work. You would have understood that doesn't work because he clearly stated
QUOTE
If I used hypers and haved it move to it's own location repetively, it won't attack then.
Report, edit, etc...Posted by axblader on 2005-03-31 at 21:03:30
put DTs around it?
or you can blind it...though i dunno if it works om computers(i believe they still can see thier full range, those cheating little (badword))
couldnt you put keep attacking in the same place? instead of like ordering to the same place.
Report, edit, etc...Posted by Snipe on 2005-03-31 at 21:09:36
i think hydra and legacy pritty much solved it
Report, edit, etc...Posted by sckor on 2005-03-31 at 21:18:07
surround it by dts . Make the dt owner ally to the firebat. Also, always set the hp of the dt to 100% constantly or if ia dt dies, it will die I guess.
Report, edit, etc...Posted by chuiu on 2005-03-31 at 21:41:26
You can just order it to move to the location every time it leaves it. That way it has freedom to attack, but is ordered to go back when it leaves. So that it only attacks anything within it's range.
Report, edit, etc...Posted by Ultimo on 2005-03-31 at 21:44:05
He said in the first post that was a possiblity, but it would look unprofessional to him, so he doesn't wanna us that tactic.
Report, edit, etc...Posted by sckor on 2005-03-31 at 21:49:15
By moving, did you try teleporting?
Report, edit, etc...Posted by LegacyWeapon on 2005-03-31 at 21:55:54
Teleporting does not work if done constantly with hypers.

I suggest using chu's method with a 1x1 PIXEL location (a tiny dot in SF with the grid on 1x1 pixels).
Report, edit, etc...Posted by Heimdal on 2005-03-31 at 22:09:39
If this doesn't disrupt anything else in your map, you could have the computer ally you until you bring a unit within a certain radius of the enemy.
Report, edit, etc...Posted by TRiGGaMaSTa on 2005-03-31 at 22:54:42
The best solution i came up with is this... Instead of tons of locations over each firebat. 1 location over the water, which is unwalkable terrain.

Then have a trigger constantly moving all firebats to that location. but since it cant it will just freeze them in place. but they will be able to attack since i've used this before. And it's funny cause as you walk around out of their range.. they stair at you in every direction like scary statues.
Report, edit, etc...Posted by Wilhelm on 2005-04-01 at 03:15:08
You mean they turn and face you? That would be really helpful for my RPG.
Report, edit, etc...Posted by Fiend on 2005-04-01 at 09:09:01
QUOTE(TRiGGaMaSTa @ Mar 31 2005, 09:54 PM)
The best solution i came up with is this... Instead of tons of locations over each firebat. 1 location over the water, which is unwalkable terrain.

Then have a trigger constantly moving all firebats to that location. but since it cant it will just freeze them in place. but they will be able to attack since i've used this before. And it's funny cause as you walk around out of their range.. they stair at you in every direction like scary statues.
[right][snapback]177565[/snapback][/right]


Dude, THATS PERFECT! Im going to use that for my Hold Posistion, thanks allot man.
Next Page (1)