Prevent projectiles from shooting over barrier

lucidcynic

New Member
Reaction score
0
Hello, I am creating a custom map and wish to stop players from moving, flying, or shooting over a ridge. It is a modification of regular melee play. I see pathing to stop movement, but how do I stop shooting? Thanks!
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Projectiles are actually normal units with a couple of differences. I don't think the pathing to stop movement stops missiles however(I assume you tried that already).

I can't think of a smart way to stop projectiles with the normal movement system. Personally for my map I use a custom physics system to handle the projectiles and it would be easy to do what you want with it. However, implementing a custom physics system for this small thing is way overkill. The easiest solution would be to make a region over your ridge and use a trigger to kill the projectile if it enters.

Something like this should do:
Trigger:
  • Ridge projectile blocking
    • Events
      • Unit - Any Unit Enters *Your_Region*
    • Local Variables
    • Conditions
      • ((Unit type of (Triggering unit)) is Missile) == True
    • Actions
      • Unit - Kill (Triggering unit)


Try it out and tell me how it works.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top