• 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.

just wondering

Status
Not open for further replies.
Level 10
Joined
Aug 8, 2004
Messages
562
hey ummm i am just wondering.....
whats a good action to remove a unit, Such as Remove Last Created unit From Game, but without the last craeted unit because that might not work if there is a creeps spawn....
and did that Crooshair Kill spell work??
and
how do i make models??

That's all :lol:
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
TO MAKE MODELS... Refer to the Modelling forum.

About the Crosskill spell... I don't know it.

About the last created unit... Umm, it works obviously but it can be buggy. It's better to use variables or even better, JASS. It appears because the list of the type of units does not change with every trigger action :).
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Ok... A variable is a stuff that remembers units, special effects, positions and so on. Variables can store only ONE unit at a time. If you store another unit to the variable once a unit is there, the last unit is cleared as a related to the variable. That is why you should always use for spells, array variables, because more than one unit may cast your spell. Unfortunately, for now I know how to make the spell be functional for only ONE UNIT PER PLAYER. How? If you have let's say to store an unit for a spell, you can create an unit variable and give it as an array value (it's appears in []), the player number of the (owner of (triggering unit)). More about variables... Hmm, I may think about making a tutorial for them but I don't know yet. i don't have the time.
 
Status
Not open for further replies.
Top