• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Tiny - Toss ability

Status
Not open for further replies.
Level 1
Joined
Sep 9, 2006
Messages
4
Im still new here and my english is kinda bad so I firstly apologize for mistake that I make.

Does anyone have an idea how to do a toss ability just what like tiny on dota do?

So basicly I want to pick a random unit on 200 range of my hero and toss them to sky and i want it to landed on the area that i chose.

Tips are welcomed :D

~~ I dont do Jass ~~
 
Level 1
Joined
Sep 9, 2006
Messages
4
well Jass would be ok, but im sure i need a few guide to do it. Tossing are fun i found a great interest to learn this skill. So ya , Need more advance tips XD.
 
Level 7
Joined
Oct 5, 2007
Messages
118
Basicly you have to change the tossed unit position and flying height very often, based on a parabel function.
To let any unit fly you have to add her the ability 'crowform'.
That are the basics for any toss/leap...
 
Level 1
Joined
Sep 9, 2006
Messages
4
Ummm So If I add a "CrowAbility" I dont need to make the units as a flying unit? That's a cool tips, thank you. Looking for more tips.
 
Level 1
Joined
Sep 9, 2006
Messages
4
Edited: I found a solution by downloading a jump spell that availble on this site and manage to edit it.

But I got a simple bug that I can't solve, Does any1 know how to completly remove dying unit? Because when i cast my ability it just throw the CORPSE!!!! T T All tips are welcomed
 
Last edited:
Level 11
Joined
Feb 22, 2006
Messages
752
GUI: Actions - Remove Unit from Game

Jass: call RemoveUnit( u )

If you dont want your spell to be throwing corpses then just add an if then statement checking to see if the unit is alive:

JASS:
    if ( GetUnitState( u, UNIT_STATE_LIFE ) >= 0.405 ) then
    //actions...
    endif

EDIT: For the Jass, make sure you actually define what the variable u is.
 
Status
Not open for further replies.
Top