Loading...
  OR  Zero-K Name:    Password:   

Permanent Area Atk to Tick and Roach

5 posts, 1186 views
Post comment
Filter:    Player:  
sort
11 years ago
I wanted to make Tick and Roach to act more like a mine when cloaked/stationary, so did try to make it have a permanent area atk command with same radios that its decloak, so that any unit that would uncloak it would get atked, but area atk and repeat command did not work, any idea one how to do it?
+0 / -0


11 years ago
Get all units near it (in cylinder/sphere of radius x) and if any is enemy, issue attack order on it.

Although setting it to fire at will should work just fine...
+0 / -0
11 years ago
quote:
Get all units near it (in cylinder/sphere of radius x) and if any is enemy, issue attack order on it.

Did not understand can you explain better?

quote:

Although setting it to fire at will should work just fine...

Did try but it did not work the way i wanted, roach/tick moved long before any unit got near enough to uncloak it.
+0 / -0


11 years ago
quote:
Did not understand can you explain better?

Hm, I'd assumed you were doing a widget.

(if you need the function params, look them up on Spring wiki)
Spring.GetUnitsInCylinder OR
Spring.GetUnitsInSphere

Go through the list of units returned, and if any of them fails a Spring.AreTeamsAllied comparison of their team vs. yours, Spring.GiveOrderToUnit with CMD.ATTACK.

quote:
Did try but it did not work the way i wanted, roach/tick moved long before any unit got near enough to uncloak it.

Hold Position
(but then you'll probably want a way to reset to Maneuver when the Roach is moving)
+0 / -0
Can not code, can you do it for me, plz?
+0 / -0