- Joined
- Sep 8, 2016
- Messages
- 8
Projectile has an arc of 0.35, but I'm pretty sure that isn't the problem since the effect is being DELAYED at long distances instead of it being early. Spell is based off of cluster rockets.
Works completely fine in short distances. ( <300 )
Works completely fine in short distances. ( <300 )
-
Frag Grenade
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Frag Grenade
-
Actions
- Set grenade_count = (grenade_count + 1)
- Set grenade_caster[grenade_count] = (Triggering unit)
- Set grenade_pos[grenade_count] = (Position of (Triggering unit))
- Set grenade_targetpos[grenade_count] = (Target point of ability being cast)
- Set grenade_wait[grenade_count] = ((Distance between (Position of (Triggering unit)) and (Target point of ability being cast)) / 300.00)
- Wait grenade_wait[grenade_count] seconds
- Set grenade_index = (grenade_index + 1)
- Special Effect - Create a special effect at grenade_targetpos[grenade_index] using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Cause grenade_caster[grenade_index] to damage circular area after 0.00 seconds of radius 300.00 at grenade_targetpos[grenade_index], dealing 100.00 damage of attack type Spells and damage type Demolition
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- grenade_index Equal to grenade_count
-
Then - Actions
- Set grenade_count = 0
- Set grenade_index = 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events