1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Ride into the sunset with the 32nd Modeling Contest. The contest is optionally paired. Best of luck, people!
    Dismiss Notice
  5. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  6. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Unit Triggered Movement System/Projectile System

Submitted by Deadreyo
This bundle is marked as pending. It has not been reviewed by a staff member yet.
[Usable by GUI/Jass/vJass]

This is a triggered movement system for units or a Projectile system. It is used to fire projectiles, make charge abilities, skillshot abilities and shockwaves, etc. and without effort, just using the syntax. The full explanation is inside the map. Please read all the Trigger Comments.

This system uses TriggerHappy's Timed Life for Effect system to automatically remove the explosion SFX.

  1. destination point, speed, minimum range needed between the projectile and the destination to finish.
  2. arcing in sin graph with maximum height.
  3. collision size and damage.
  4. supports 1 target only mode. Basically the projectile will stop when it collides a target
  5. A trigger that can be activated when a unit is hit in 1 target only mode.
  6. Explosion on end, which is basically an AoE damage when it reaches the destination.
  7. Area of Effect, damage, SFX for the explosion
  8. A trigger that is activated when the explosion occurs
  9. Whether the projectile is automatically removed when it ends.

You can also just use the motion of the system and manually assign triggers for the unit. Example of this is activating a trigger whenever a unit is touched by the projectile, but without ending the movement. (Currently the available type in this system is to activate a trigger for collision only when 1 target only mode is on)

Note: This system is designed for fixed points, not for moving locations/moving units.

Some Usages for example:
  1. A custom shockwave that deals attribute of a hero as damage.
  2. A spear ability that stops at the first target.
  3. A unit charge ability to a specific location
  4. A rocket that explodes at the target location.

Usage Syntax [For GUI, explanation is inside the map]:
call UnitMovingPointInit( unit u, real x, real y, real speed, real CheckRange, boolean FirstTarget, real DamageDuringPath, real CollisionSize, trigger CollisionTrig, boolean ExplodeInEnd, real ExplodeDamage, real ExplodeAoE, trigger EndingTrig, string ExplodeSFX, boolean Remove, boolean End)

How to Import:
Just copy Unit Movement System and Timed Life for Effects to your map.

Code is in Preview Triggers

Update 1: Index will be reset if all instances are over (Only if the UnitMovingPointU for each instance = null). Did some small changes for test map to look better.

Update 2: Added a library initializer. So now the system trigger can be renamed without issues.
Update 3: Actually added that initializer, sorry.
Update 4: Added the option to make the projectile arc using Sin graph.

In the Future: Special Effect projectiles support and homing projectiles.

keywords: projectile, system, trigger, movement, motion, unit, GUI, jass, skillshot

Unit Movement System (Map)

  1. zxxzyyz


    Jan 31, 2020
    How can I make a spell like [Projectile running damage path] but deals damage only once to each unit?
  2. Deadreyo


    Sep 3, 2014
    By having CheckRange value equals half the speed value.