accomplice
  • accomplice
  • 80.75% (Honored)
  • Private Topic Starter
16 years ago
As the title says :)

Preparations:
GLA Ally has sneak attack granted.
GLA ALly loads a unit into an existing tunnel.
GLA Ally uses ability Sneak Attack on a way point.

And now, how do I make that particular newly created tunnel unload, and not one of the other tunnels?

Thanks again 🙂
Sponsor
Drummin
16 years ago
Well I attempted to figure out the standard Sneak Attack approach but was unsuccessful at least for now. As you had mentioned you wanted the attack to happen at a particular waypoint and I know you're working on a mission, I did a test using our named tunnel setup we used earlier that had named tunnels. On the teams creation, they're told to run a sequential script sequentially. They move to a tunnel within their base, load into named tunnel, the Sneak Attack tunnel is spawned in the enemy base, the team unloads from named tunnel and begins hunting. The result is basically the same and should work for a mission.   TestTunnel2-SneakAttack.zip (10kb) downloaded 43 time(s).
accomplice
  • accomplice
  • 80.75% (Honored)
  • Private Topic Starter
16 years ago
Ah I see. My biggest concern was that when I utilized
"team GLA_AI use ability Command_sneakAttack at waypoint xyz",

I have no way to give the newly spawned tunnel a name for further operatings.

Does directly spawning such a tunnel come with the digging animation too? :)
[opens game and tries]

Aww, no animation though 😶 I wonder if we could put the GLASneakAttackTunnelNetworkStart on that waypoint first, then wait till the animation is done, then remove it and replace by the actual tunnel... 🙂

(Just thought of another easy but dilettante way, use tunnel ability, spawn units infront of tunnel ><)

I tried it, it worked rather well.
-once units in tunnel -> spawn tunnel start object (digging animation).
-set timer
-activate replace + unload script
-time done -> replace dig object with actual tunnel
-unload :)

thanks for your great idea with just spawning the tunnel instead of making the AI use some command button 👍
Annihilationzh
16 years ago
My solution would be to spawn a named GLASneakAttackTunnelNetworkStart, delete it after 4800 milliseconds and then spawn a named GLASneakAttackTunnelNetwork in it's place.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
CommieDog
16 years ago
I think tunnels unload automatically if they see enemy units in their VisionRange.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
accomplice
  • accomplice
  • 80.75% (Honored)
  • Private Topic Starter
16 years ago
Sweet, good to know the exact animation duration of the tunnelstart object :)

And well, my case is a bit different, it's a mission setting like following:

- Beach fortified with US stuff.
- GLA player captures some building, triggering a GLA hole to spawn that unloads some units.
- In order to ensure that the hole does not get destroyed while deploying, it belongs to a neutral faction (which is colored the same as the player)
- after units are out, they are transferred to the player.

Since that hole itself belongs to a neutral, it won't unload on enemy sight at all :p